|
@@ -1,8 +1,4 @@
|
1
|
|
-import Footer from '@/components/Footer';
|
2
|
|
-import RightContent from '@/components/RightContent';
|
3
|
|
-import { currentUser as queryCurrentUser } from '@/services/api/login';
|
4
|
1
|
import { requestConfig } from '@/utils/request';
|
5
|
|
-import { SettingDrawer } from '@ant-design/pro-components';
|
6
|
2
|
import { history } from '@umijs/max';
|
7
|
3
|
import defaultSettings from '../config/defaultSettings';
|
8
|
4
|
|
|
@@ -43,6 +39,16 @@ export const layout = ({ initialState, setInitialState }) => {
|
43
|
39
|
return {
|
44
|
40
|
// rightContentRender: () => <RightContent />,
|
45
|
41
|
disableContentMargin: false,
|
|
42
|
+ token: {
|
|
43
|
+ sider: {
|
|
44
|
+ menuBackgroundColor: '#001529',
|
|
45
|
+ menuTitleTextColor: '#fff',
|
|
46
|
+ menuTextColor: 'hsla(0,0%,100%,.65);',
|
|
47
|
+ menuSubArrowColor: '#fff',
|
|
48
|
+ menuItemSelectedBgColor: '#1890ff',
|
|
49
|
+ menuSelectedTextColor: '#fff',
|
|
50
|
+ },
|
|
51
|
+ },
|
46
|
52
|
// waterMarkProps: {
|
47
|
53
|
// content: initialState?.currentUser?.name,
|
48
|
54
|
// },
|
|
@@ -64,17 +70,12 @@ export const layout = ({ initialState, setInitialState }) => {
|
64
|
70
|
// ]
|
65
|
71
|
// : [],
|
66
|
72
|
menuHeaderRender: undefined,
|
67
|
|
-
|
68
|
73
|
// 自定义 403 页面
|
69
|
74
|
// unAccessible: <div>unAccessible</div>,
|
70
|
75
|
// 增加一个 loading 的状态
|
71
|
76
|
childrenRender: (children, props) => {
|
72
|
77
|
// if (initialState?.loading) return <PageLoading />;
|
73
|
|
- return (
|
74
|
|
- <>
|
75
|
|
- {children}
|
76
|
|
- </>
|
77
|
|
- );
|
|
78
|
+ return <>{children}</>;
|
78
|
79
|
},
|
79
|
80
|
|
80
|
81
|
...initialState?.settings,
|