refactor: 整理页面的目录结构
This commit is contained in:
@@ -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'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user