From 31208fa9ffb0f014be550bd796d7677c37c5a05a Mon Sep 17 00:00:00 2001 From: linxd <544554903@qq.com> Date: Tue, 24 Jun 2025 10:06:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/router.config.ts | 2 +- src/layouts/MainLayout.tsx | 30 +----------------------------- 2 files changed, 2 insertions(+), 30 deletions(-) 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;