diff --git a/config/router.config.ts b/config/router.config.ts index fe0c10b..ae17aa9 100644 --- a/config/router.config.ts +++ b/config/router.config.ts @@ -48,7 +48,7 @@ export default [ routes: [ { name: 'supplierTemplateManage', - path: 'supplierTemplateManage', + path: '/supplierEvaluate/supplierTemplateManage', meta: { title: '模板管理', icon: 'icon-fenlei', diff --git a/src/layouts/MainLayout.tsx b/src/layouts/MainLayout.tsx index 34a0605..aeda798 100644 --- a/src/layouts/MainLayout.tsx +++ b/src/layouts/MainLayout.tsx @@ -1,36 +1,8 @@ import React from 'react'; -import { Layout } from 'antd'; -import { useLocation } from 'umi'; - -const { Content } = Layout; - -/** - * 供应商评价和年审的子路由布局组件 - */ const MainLayout: React.FC = (props) => { const { children } = props; - const location = useLocation(); - // 调试信息,帮助排查问题 - console.log('MainLayout渲染:', { - path: location.pathname, - children: !!children - }); - - return ( - - - {children ||
请选择子菜单项
} -
-
- ); + return <>{children}; }; export default MainLayout;