Yansen 2 years ago
parent
commit
09929a1567
4 changed files with 17 additions and 5 deletions
  1. 4
    2
      config/defaultSettings.js
  2. 8
    2
      config/routes.js
  3. 1
    1
      package.json
  4. 4
    0
      src/global.less

+ 4
- 2
config/defaultSettings.js View File

4
   // 拂晓蓝
4
   // 拂晓蓝
5
   primaryColor: '#1890ff',
5
   primaryColor: '#1890ff',
6
   contentWidth: 'Fluid',
6
   contentWidth: 'Fluid',
7
-  fixedHeader: false,
8
-  fixSiderbar: true,
9
   colorWeak: false,
7
   colorWeak: false,
10
   title: '', // 必须为空
8
   title: '', // 必须为空
11
   pwa: false,
9
   pwa: false,
12
   iconfontUrl: '',
10
   iconfontUrl: '',
13
   footerRender: false,
11
   footerRender: false,
12
+  menu: {
13
+    type: 'group'
14
+  },
15
+  fixSiderbar: true,
14
   layout: 'mix',
16
   layout: 'mix',
15
   splitMenus: true,
17
   splitMenus: true,
16
 };
18
 };

+ 8
- 2
config/routes.js View File

24
     redirect: '/rotationChart/list',
24
     redirect: '/rotationChart/list',
25
   },
25
   },
26
   {
26
   {
27
-    path: '/rotationChart/list',
27
+    path: '/rotationChart',
28
     name: '轮播图管理',
28
     name: '轮播图管理',
29
     icon: 'picCenter',
29
     icon: 'picCenter',
30
-    component: './rotationChart/list',
30
+    routes: [
31
+      {
32
+        path: '/rotationChart/list',
33
+        name: '轮播图管理',
34
+        component: './rotationChart/list',
35
+      },
36
+    ],
31
   },
37
   },
32
   {
38
   {
33
     path: '/rotationChart/add',
39
     path: '/rotationChart/add',

+ 1
- 1
package.json View File

45
   ],
45
   ],
46
   "dependencies": {
46
   "dependencies": {
47
     "@ant-design/icons": "^4.7.0",
47
     "@ant-design/icons": "^4.7.0",
48
-    "@ant-design/pro-components": "^2.0.0",
48
+    "@ant-design/pro-components": "^2.3.16",
49
     "@umijs/route-utils": "^2.1.3",
49
     "@umijs/route-utils": "^2.1.3",
50
     "antd": "^4.20.0",
50
     "antd": "^4.20.0",
51
     "classnames": "^2.3.0",
51
     "classnames": "^2.3.0",

+ 4
- 0
src/global.less View File

77
   right: -13px;
77
   right: -13px;
78
 }
78
 }
79
 
79
 
80
+// .ant-pro .ant-pro-layout .ant-pro-sider-mix {
81
+//   top: 64px;
82
+// }
83
+
80
 .ant-layout-sider-children {
84
 .ant-layout-sider-children {
81
   padding: 8px;
85
   padding: 8px;
82
 }
86
 }