|
@@ -114,21 +114,34 @@ export const constantRoutes = [
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
- {
|
|
|
- path: "/home",
|
|
|
- name: "home",
|
|
|
-
|
|
|
- meta: { title: "首页", icon: "dashboard", affix: true },
|
|
|
- component: Layout,
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "/home/index",
|
|
|
- component: () => import("@/views/home/index"),
|
|
|
- name: "home",
|
|
|
- meta: { title: "首页", icon: "dashboard", affix: true },
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
+ {
|
|
|
+ path: '',
|
|
|
+ component: Layout,
|
|
|
+ redirect: 'index',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index',
|
|
|
+ component: () => import('@/views/home/index'),
|
|
|
+ name: 'Index',
|
|
|
+ meta: { title: '首页', icon: 'dashboard', affix: true }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|