第一次点击运维管理,样式生效
第二点击运维管理,样式消失
路由参数//运维管理
{
path: '/operation',
name: 'operation',
icon: 'sync',
access: 'normalRouteFilter',
routes: [
{
path: '/operation',
redirect: '/operation/resource',
},
{
name: 'resource',
path: '/operation/resource',
access: 'normalRouteFilter',
routes: [
{
path: '/operation/resource',
component: './operation/resource',
},
{
name: 'detail',
hideInMenu: true,
path: '/operation/resource/detail',
component: './operation/resource/components',
access: 'normalRouteFilter',
},
],
},
],
}
defaultSettings.ts 页面配置
import { Settings as LayoutSettings } from '@ant-design/pro-components';
const Settings: LayoutSettings & {
pwa?: boolean;
logo?: string;
} =
{
navTheme: 'light',
// 拂晓蓝
primaryColor: '#1890ff',
layout: 'mix',
contentWidth: 'Fluid',
fixedHeader: false,
fixSiderbar: true,
colorWeak: false,
title: 'Ant Design Pro',
pwa: false,
logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg',
iconfontUrl: '',
};
export default Settings;