diff --git a/src/router/index.ts b/src/router/index.ts index 16c4454..3991615 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -15,14 +15,6 @@ const router = createRouter({ path: '/', redirect: 'chirp/base', }, - { - path: '/login', - name: 'login', - component: () => import('@/views/login/index.vue'), - meta: { - requiresAuth: false, - }, - }, ...appRoutes, REDIRECT_MAIN, SATLOC, diff --git a/src/router/routes/modules/exception.ts b/src/router/routes/modules/exception.ts deleted file mode 100644 index c8dd20f..0000000 --- a/src/router/routes/modules/exception.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { DEFAULT_LAYOUT } from '../base'; -import { AppRouteRecordRaw } from '../types'; - -const EXCEPTION: AppRouteRecordRaw = { - path: '/exception', - name: 'exception', - component: DEFAULT_LAYOUT, - meta: { - locale: 'menu.exception', - requiresAuth: true, - icon: 'icon-exclamation-circle', - order: 6, - }, - children: [ - { - path: '403', - name: '403', - component: () => import('@/views/exception/403/index.vue'), - meta: { - locale: 'menu.exception.403', - requiresAuth: true, - roles: ['*'], - }, - }, - { - path: '404', - name: '404', - component: () => import('@/views/exception/404/index.vue'), - meta: { - locale: 'menu.exception.404', - requiresAuth: true, - roles: ['*'], - }, - }, - { - path: '500', - name: '500', - component: () => import('@/views/exception/500/index.vue'), - meta: { - locale: 'menu.exception.500', - requiresAuth: true, - roles: ['*'], - }, - }, - ], -}; - -// export default EXCEPTION; diff --git a/src/router/routes/modules/form.ts b/src/router/routes/modules/form.ts deleted file mode 100644 index 77a2260..0000000 --- a/src/router/routes/modules/form.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { DEFAULT_LAYOUT } from '../base'; -import { AppRouteRecordRaw } from '../types'; - -const FORM: AppRouteRecordRaw = { - path: '/form', - name: 'form', - component: DEFAULT_LAYOUT, - meta: { - locale: 'menu.form', - icon: 'icon-settings', - requiresAuth: true, - order: 3, - }, - children: [ - { - path: 'step', - name: 'Step', - component: () => import('@/views/form/step/index.vue'), - meta: { - locale: 'menu.form.step', - requiresAuth: true, - roles: ['*'], - }, - }, - { - path: 'group', - name: 'Group', - component: () => import('@/views/form/group/index.vue'), - meta: { - locale: 'menu.form.group', - requiresAuth: true, - roles: ['*'], - }, - }, - ], -}; - -// export default FORM; diff --git a/src/router/routes/modules/profile.ts b/src/router/routes/modules/profile.ts deleted file mode 100644 index 4ae10f4..0000000 --- a/src/router/routes/modules/profile.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { DEFAULT_LAYOUT } from '../base'; -import { AppRouteRecordRaw } from '../types'; - -const PROFILE: AppRouteRecordRaw = { - path: '/profile', - name: 'profile', - component: DEFAULT_LAYOUT, - meta: { - locale: 'menu.profile', - requiresAuth: true, - icon: 'icon-file', - order: 4, - }, - children: [ - { - path: 'basic', - name: 'Basic', - component: () => import('@/views/profile/basic/index.vue'), - meta: { - locale: 'menu.profile.basic', - requiresAuth: true, - roles: ['*'], - }, - }, - ], -}; - -// export default PROFILE; diff --git a/src/router/routes/modules/result.ts b/src/router/routes/modules/result.ts deleted file mode 100644 index fa83e4b..0000000 --- a/src/router/routes/modules/result.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { DEFAULT_LAYOUT } from '../base'; -import { AppRouteRecordRaw } from '../types'; - -const RESULT: AppRouteRecordRaw = { - path: '/result', - name: 'result', - component: DEFAULT_LAYOUT, - meta: { - locale: 'menu.result', - icon: 'icon-check-circle', - requiresAuth: true, - order: 5, - }, - children: [ - { - path: 'success', - name: 'Success', - component: () => import('@/views/result/success/index.vue'), - meta: { - locale: 'menu.result.success', - requiresAuth: true, - roles: ['*'], - }, - }, - { - path: 'error', - name: 'Error', - component: () => import('@/views/result/error/index.vue'), - meta: { - locale: 'menu.result.error', - requiresAuth: true, - roles: ['admin'], - }, - }, - ], -}; - -// export default RESULT; diff --git a/src/router/routes/modules/user.ts b/src/router/routes/modules/user.ts deleted file mode 100644 index 600de04..0000000 --- a/src/router/routes/modules/user.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { DEFAULT_LAYOUT } from '../base'; -import { AppRouteRecordRaw } from '../types'; - -const USER: AppRouteRecordRaw = { - path: '/user', - name: 'user', - component: DEFAULT_LAYOUT, - meta: { - locale: 'menu.user', - icon: 'icon-user', - requiresAuth: true, - order: 7, - }, - children: [ - { - path: 'info', - name: 'Info', - component: () => import('@/views/user/info/index.vue'), - meta: { - locale: 'menu.user.info', - requiresAuth: true, - roles: ['*'], - }, - }, - { - path: 'setting', - name: 'Setting', - component: () => import('@/views/user/setting/index.vue'), - meta: { - locale: 'menu.user.setting', - requiresAuth: true, - roles: ['*'], - }, - }, - ], -}; - -// export default USER; diff --git a/src/router/routes/modules/visualization.ts b/src/router/routes/modules/visualization.ts deleted file mode 100644 index ef111f2..0000000 --- a/src/router/routes/modules/visualization.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { DEFAULT_LAYOUT } from '../base'; -import { AppRouteRecordRaw } from '../types'; - -const VISUALIZATION: AppRouteRecordRaw = { - path: '/visualization', - name: 'visualization', - component: DEFAULT_LAYOUT, - meta: { - locale: 'menu.visualization', - requiresAuth: true, - icon: 'icon-apps', - order: 1, - }, - children: [ - { - path: 'data-analysis', - name: 'DataAnalysis', - component: () => import('@/views/visualization/data-analysis/index.vue'), - meta: { - locale: 'menu.visualization.dataAnalysis', - requiresAuth: true, - roles: ['*'], - }, - }, - { - path: 'multi-dimension-data-analysis', - name: 'MultiDimensionDataAnalysis', - component: () => - import('@/views/visualization/multi-dimension-data-analysis/index.vue'), - meta: { - locale: 'menu.visualization.multiDimensionDataAnalysis', - requiresAuth: true, - roles: ['*'], - }, - }, - ], -}; - -// export default VISUALIZATION;