路由调整

This commit is contained in:
dong 2023-08-17 10:09:39 +08:00
parent d3e12f5846
commit 54999a9339

View File

@ -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,