修改样式
This commit is contained in:
@ -48,7 +48,7 @@ export default [
|
|||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
name: 'supplierTemplateManage',
|
name: 'supplierTemplateManage',
|
||||||
path: 'supplierTemplateManage',
|
path: '/supplierEvaluate/supplierTemplateManage',
|
||||||
meta: {
|
meta: {
|
||||||
title: '模板管理',
|
title: '模板管理',
|
||||||
icon: 'icon-fenlei',
|
icon: 'icon-fenlei',
|
||||||
|
@ -1,36 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Layout } from 'antd';
|
|
||||||
import { useLocation } from 'umi';
|
|
||||||
|
|
||||||
const { Content } = Layout;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 供应商评价和年审的子路由布局组件
|
|
||||||
*/
|
|
||||||
const MainLayout: React.FC = (props) => {
|
const MainLayout: React.FC = (props) => {
|
||||||
const { children } = props;
|
const { children } = props;
|
||||||
const location = useLocation();
|
|
||||||
|
|
||||||
// 调试信息,帮助排查问题
|
return <>{children}</>;
|
||||||
console.log('MainLayout渲染:', {
|
|
||||||
path: location.pathname,
|
|
||||||
children: !!children
|
|
||||||
});
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Layout style={{ padding: '0 24px', minHeight: 'calc(100vh - 140px)' }}>
|
|
||||||
<Content
|
|
||||||
style={{
|
|
||||||
margin: 0,
|
|
||||||
minHeight: 280,
|
|
||||||
background: '#fff',
|
|
||||||
padding: '24px',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{children || <div>请选择子菜单项</div>}
|
|
||||||
</Content>
|
|
||||||
</Layout>
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default MainLayout;
|
export default MainLayout;
|
||||||
|
Reference in New Issue
Block a user