refactor: 整理页面的目录结构

This commit is contained in:
yangsy
2026-01-13 13:27:25 +08:00
parent bef02fe538
commit 341bcb314f
10 changed files with 9 additions and 9 deletions

View File

@@ -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: 'permission',
component: () => import('@/pages/permission-page.vue'),
component: () => import('@/pages/permission/permission-page.vue'),
beforeEnter: () => {
const userStore = useUserStore();
if (userStore.isLamp) return true;
@@ -58,7 +58,7 @@ const router = createRouter({
},
{
path: '/:pathMatch(.*)*',
component: () => import('@/pages/not-found-page.vue'),
component: () => import('@/pages/error/not-found-page.vue'),
},
],
},