|
@@ -10,7 +10,20 @@ const allRoutes: Array<RouteRecordRaw> = [
|
|
|
},
|
|
|
{
|
|
|
path: '/',
|
|
|
- redirect: '/runData',
|
|
|
+ redirect: '/home',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/home',
|
|
|
+ component: Layout,
|
|
|
+ redirect: '/home/index',
|
|
|
+ name: 'home',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index',
|
|
|
+ name: 'homeIndex',
|
|
|
+ component: () => import('@/views/home/index.vue'),
|
|
|
+ meta: { title: '首页' },
|
|
|
+ }]
|
|
|
},
|
|
|
{
|
|
|
path: '/runData',
|
|
@@ -37,19 +50,6 @@ const allRoutes: Array<RouteRecordRaw> = [
|
|
|
component: () => import('@/views/logs/index.vue'),
|
|
|
meta: { title: '日志数据' },
|
|
|
}]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/demo',
|
|
|
- component: Layout,
|
|
|
- redirect: '/demo/index',
|
|
|
- name: 'demo',
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'index',
|
|
|
- name: 'demoIndex',
|
|
|
- component: () => import('@/views/demo/index.vue'),
|
|
|
- meta: { title: 'demo数据' },
|
|
|
- }]
|
|
|
}
|
|
|
];
|
|
|
|