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.
80 lines
1.5 KiB
80 lines
1.5 KiB
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
import {
|
|
BasicLayout,
|
|
BlankLayout
|
|
} from '@/layouts'
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
const routes = [{
|
|
path: '/',
|
|
component: BasicLayout,
|
|
redirect: '/firstaid/patientList',
|
|
hidden: true,
|
|
children: [{
|
|
path: '/firstaid/patientList',
|
|
name: 'PatientList',
|
|
meta: {
|
|
back: false,
|
|
nav: true
|
|
},
|
|
component: () => import( /* 急救患者 */ 'views/Patient/index.vue')
|
|
}, {
|
|
path: '/firstaid/thrombolysis',
|
|
name: 'Thrombolysis',
|
|
meta: {
|
|
back: false,
|
|
nav: true
|
|
},
|
|
component: () => import( /* 溶栓急救 */ 'views/thrombolysis/index.vue'),
|
|
},
|
|
{
|
|
path: '/document',
|
|
name: 'Document',
|
|
meta: {
|
|
back: false,
|
|
nav: true
|
|
},
|
|
component: () => import( /* 档案 */ 'views/document/index.vue'),
|
|
},
|
|
{
|
|
path: '/statistics',
|
|
name: 'Statistics',
|
|
meta: {
|
|
back: false,
|
|
nav: true
|
|
},
|
|
component: () => import( /* 档案 */ 'views/statistics/index.vue'),
|
|
},
|
|
// {
|
|
// path: '/doc-report',
|
|
// name: 'DocReport',
|
|
// meta: {
|
|
// back: true,
|
|
// nav: true
|
|
// },
|
|
// component: () => import( /* 档案 */ 'views/document/report.vue'),
|
|
// }
|
|
]
|
|
},
|
|
{
|
|
name: 'Login',
|
|
path: '/login',
|
|
component: () => import('@/views/login/index')
|
|
}
|
|
// {
|
|
// path: '/404',
|
|
// component: () => import('@/views/exception/404')
|
|
// }
|
|
]
|
|
|
|
const router = new VueRouter({
|
|
mode: 'hash', // 去掉url中的#
|
|
scrollBehavior: () => ({
|
|
y: 0
|
|
}),
|
|
routes
|
|
})
|
|
|
|
export default router
|