Yansen 2 年之前
父節點
當前提交
09929a1567
共有 4 個檔案被更改,包括 17 行新增5 行删除
  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 查看文件

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

+ 8
- 2
config/routes.js 查看文件

@@ -24,10 +24,16 @@
24 24
     redirect: '/rotationChart/list',
25 25
   },
26 26
   {
27
-    path: '/rotationChart/list',
27
+    path: '/rotationChart',
28 28
     name: '轮播图管理',
29 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 39
     path: '/rotationChart/add',

+ 1
- 1
package.json 查看文件

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

+ 4
- 0
src/global.less 查看文件

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