路由调整
This commit is contained in:
parent
d3e12f5846
commit
54999a9339
@ -5,8 +5,8 @@ const routes: RouteRecordRaw[] = [
|
||||
path: '/',
|
||||
name: 'home',
|
||||
redirect: '/monitor',
|
||||
component: () => import('layouts/MainLayout.vue'),
|
||||
children: [{ path: '', component: () => import('pages/IndexPage.vue') }],
|
||||
// component: () => import('layouts/MainLayout.vue'),
|
||||
// children: [{ path: '', component: () => import('pages/IndexPage.vue') }],
|
||||
},
|
||||
|
||||
{
|
||||
@ -82,17 +82,25 @@ const routes: RouteRecordRaw[] = [
|
||||
// },
|
||||
{
|
||||
path: '/line/monitor/:lineId',
|
||||
name: 'linemonitor',
|
||||
component: () => import('layouts/MainLayout.vue'),
|
||||
children: [
|
||||
{ path: '', component: () => import('pages/LineMonitorPage.vue') },
|
||||
{
|
||||
path: '',
|
||||
name: 'linemonitor',
|
||||
component: () => import('pages/LineMonitorPage.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/monitor',
|
||||
name: 'monitor',
|
||||
component: () => import('layouts/MainLayout.vue'),
|
||||
children: [{ path: '', component: () => import('pages/MonitorPage.vue') }],
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'monitor',
|
||||
component: () => import('pages/MonitorPage.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
// Always leave this as last one,
|
||||
|
Loading…
Reference in New Issue
Block a user