You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.0 KiB
83 lines
2.0 KiB
import type { RouteRecordRaw } from 'vue-router' |
|
import { PageEnum } from '@/enums/pageEnum' |
|
|
|
import Layout from '@/layout/Index.vue' |
|
|
|
export const LAYOUT = () => Promise.resolve(Layout) |
|
|
|
export const routes = [ |
|
{ |
|
path: '/', |
|
redirect: '/home' |
|
}, |
|
{ |
|
path: '/login', |
|
component: () => import('@/views/Login.vue'), |
|
}, |
|
{ |
|
path: '/support', |
|
component: () => import('@/views/Support.vue'), |
|
}, |
|
{ |
|
path: '/datav/gobal', |
|
component: () => import('@/views/datav/Gobal.vue'), |
|
}, |
|
{ |
|
path: '/datav/videoInsp', |
|
component: () => import('@/views/datav/VideoInsp.vue'), |
|
}, |
|
{ |
|
path: '/datav/sceneInsp', |
|
component: () => import('@/views/datav/SceneInsp.vue'), |
|
}, |
|
{ |
|
path: '/datav/caseVerif', |
|
component: () => import('@/views/datav/CaseVerif.vue'), |
|
}, |
|
{ |
|
path: '/datav/mailVisits', |
|
component: () => import('@/views/datav/MailVisits.vue'), |
|
}, |
|
{ |
|
path: '/datav/caseVerif', |
|
component: () => import('@/views/datav/CaseVerif.vue'), |
|
}, |
|
{ |
|
path: '/datav/rightsComfort', |
|
component: () => import('@/views/datav/RightsComfort.vue'), |
|
}, |
|
{ |
|
path: '/datav/auditSuper', |
|
component: () => import('@/views/datav/AuditSuper.vue'), |
|
}, |
|
{ |
|
path: '/datav/jwpy', |
|
// component: () => import('@/views/datav/Jwpy.vue'), |
|
beforeEnter: (to, from, next) => { |
|
window.open('www.baidu.com', '_blank'); |
|
next(false); // 阻止路由的正常内部跳转 |
|
} |
|
}, |
|
{ |
|
path: '/datav/lmgz', |
|
component: () => import('@/views/datav/Lmgz.vue'), |
|
}, |
|
{ |
|
path: '/datav/sub1', |
|
component: () => import('@/views/datav/Sub1.vue'), |
|
}, |
|
{ |
|
path: '/datav/sub2', |
|
component: () => import('@/views/datav/Sub2.vue'), |
|
}, |
|
|
|
]; |
|
|
|
export const INDEX_ROUTE_NAME = Symbol() |
|
|
|
export const INDEX_ROUTE: RouteRecordRaw = { |
|
path: '/layout', |
|
component: LAYOUT, |
|
name: INDEX_ROUTE_NAME |
|
} |
|
|
|
|