refactor: 整理页面的目录结构

This commit is contained in:
yangsy
2026-01-15 13:41:07 +08:00
parent 045f7a9a81
commit de35075be8
9 changed files with 8 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ const router = createRouter({
routes: [ routes: [
{ {
path: '/login', path: '/login',
component: () => import('@/pages/login-page.vue'), component: () => import('@/pages/login/login-page.vue'),
}, },
{ {
path: '/', path: '/',
@@ -15,22 +15,22 @@ const router = createRouter({
children: [ children: [
{ {
path: 'station', path: 'station',
component: () => import('@/pages/station-page.vue'), component: () => import('@/pages/station/station-page.vue'),
}, },
{ {
path: 'device', path: 'device',
component: () => import('@/pages/device-page.vue'), component: () => import('@/pages/device/device-page.vue'),
}, },
{ {
path: 'alarm', path: 'alarm',
children: [ children: [
{ {
path: 'alarm-log', path: 'alarm-log',
component: () => import('@/pages/alarm-log-page.vue'), component: () => import('@/pages/alarm/alarm-log-page.vue'),
}, },
{ {
path: 'alarm-ignore', 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: [ children: [
{ {
path: 'vimp-log', path: 'vimp-log',
component: () => import('@/pages/vimp-log-page.vue'), component: () => import('@/pages/log/vimp-log-page.vue'),
}, },
{ {
path: 'call-log', path: 'call-log',
component: () => import('@/pages/call-log-page.vue'), component: () => import('@/pages/log/call-log-page.vue'),
}, },
], ],
}, },
{ {
path: '/:pathMatch(.*)*', path: '/:pathMatch(.*)*',
component: () => import('@/pages/not-found-page.vue'), component: () => import('@/pages/error/not-found-page.vue'),
}, },
], ],
}, },