refactor: 整理页面的目录结构
This commit is contained in:
@@ -6,7 +6,7 @@ const router = createRouter({
|
||||
routes: [
|
||||
{
|
||||
path: '/login',
|
||||
component: () => import('@/pages/login-page.vue'),
|
||||
component: () => import('@/pages/login/login-page.vue'),
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
@@ -15,22 +15,22 @@ const router = createRouter({
|
||||
children: [
|
||||
{
|
||||
path: 'station',
|
||||
component: () => import('@/pages/station-page.vue'),
|
||||
component: () => import('@/pages/station/station-page.vue'),
|
||||
},
|
||||
{
|
||||
path: 'device',
|
||||
component: () => import('@/pages/device-page.vue'),
|
||||
component: () => import('@/pages/device/device-page.vue'),
|
||||
},
|
||||
{
|
||||
path: 'alarm',
|
||||
children: [
|
||||
{
|
||||
path: 'alarm-log',
|
||||
component: () => import('@/pages/alarm-log-page.vue'),
|
||||
component: () => import('@/pages/alarm/alarm-log-page.vue'),
|
||||
},
|
||||
{
|
||||
path: 'alarm-ignore',
|
||||
component: () => import('@/pages/alarm-ignore-page.vue'),
|
||||
component: () => import('@/pages/alarm/alarm-ignore-page.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -39,17 +39,17 @@ const router = createRouter({
|
||||
children: [
|
||||
{
|
||||
path: 'vimp-log',
|
||||
component: () => import('@/pages/vimp-log-page.vue'),
|
||||
component: () => import('@/pages/log/vimp-log-page.vue'),
|
||||
},
|
||||
{
|
||||
path: 'call-log',
|
||||
component: () => import('@/pages/call-log-page.vue'),
|
||||
component: () => import('@/pages/log/call-log-page.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
component: () => import('@/pages/not-found-page.vue'),
|
||||
component: () => import('@/pages/error/not-found-page.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user