feat
This commit is contained in:
@@ -2,6 +2,7 @@ import { REDIRECT_ROUTE_NAME } from '@/router/constants'
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
|
||||
export const DEFAULT_LAYOUT = () => import('@/layout/default-layout.vue')
|
||||
export const STANDALONE_LAYOUT = () => import('@/layout/standalone-layout.vue')
|
||||
|
||||
export const REDIRECT_MAIN: RouteRecordRaw = {
|
||||
path: '/redirect',
|
||||
|
||||
@@ -73,6 +73,16 @@ const OPS: AppRouteRecordRaw = {
|
||||
roles: ['*'],
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'report/history',
|
||||
name: 'ReportHistory',
|
||||
component: () => import('@/views/ops/pages/report/history/index.vue'),
|
||||
meta: {
|
||||
locale: 'menu.ops.report.history',
|
||||
requiresAuth: true,
|
||||
roles: ['*'],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
45
src/router/routes/modules/remote.ts
Normal file
45
src/router/routes/modules/remote.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
import { DEFAULT_LAYOUT } from '../base'
|
||||
import { AppRouteRecordRaw } from '../types'
|
||||
|
||||
const REMOTE: AppRouteRecordRaw = {
|
||||
path: '/dc',
|
||||
name: 'DC',
|
||||
component: DEFAULT_LAYOUT,
|
||||
meta: {
|
||||
locale: 'menu.dc',
|
||||
requiresAuth: true,
|
||||
icon: 'icon-desktop',
|
||||
order: 99,
|
||||
hideInMenu: true,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'detail',
|
||||
name: 'DCDetail',
|
||||
component: () => import('@/views/ops/pages/dc/detail/index.vue'),
|
||||
meta: {
|
||||
locale: 'menu.dc.detail',
|
||||
requiresAuth: true,
|
||||
roles: ['*'],
|
||||
hideInMenu: true,
|
||||
is_full: true,
|
||||
isNewTab: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'remote',
|
||||
name: 'DCRemote',
|
||||
component: () => import('@/views/ops/pages/dc/remote/index.vue'),
|
||||
meta: {
|
||||
locale: 'menu.dc.remote',
|
||||
requiresAuth: true,
|
||||
roles: ['*'],
|
||||
hideInMenu: true,
|
||||
is_full: true,
|
||||
isNewTab: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
export default REMOTE
|
||||
Reference in New Issue
Block a user