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'), // } ] }, // { // path: '/404', // component: () => import('@/views/exception/404') // } ] const router = new VueRouter({ mode: 'hash', // 去掉url中的# scrollBehavior: () => ({ y: 0 }), routes }) export default router