修改样式

This commit is contained in:
linxd
2025-06-24 10:06:03 +08:00
parent 762632650f
commit 31208fa9ff
2 changed files with 2 additions and 30 deletions

View File

@ -48,7 +48,7 @@ export default [
routes: [
{
name: 'supplierTemplateManage',
path: 'supplierTemplateManage',
path: '/supplierEvaluate/supplierTemplateManage',
meta: {
title: '模板管理',
icon: 'icon-fenlei',

View File

@ -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 (
<Layout style={{ padding: '0 24px', minHeight: 'calc(100vh - 140px)' }}>
<Content
style={{
margin: 0,
minHeight: 280,
background: '#fff',
padding: '24px',
}}
>
{children || <div></div>}
</Content>
</Layout>
);
return <>{children}</>;
};
export default MainLayout;