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.
48 lines
947 B
48 lines
947 B
2 years ago
|
import Vue from 'vue';
|
||
|
import VueRouter from 'vue-router';
|
||
|
|
||
|
Vue.use(VueRouter);
|
||
|
|
||
|
const routes = [
|
||
|
{
|
||
|
path: '/',
|
||
|
name: 'home',
|
||
|
redirect: '/monitor',
|
||
|
},
|
||
|
{
|
||
|
path: '/monitor',
|
||
|
name: 'monitor',
|
||
|
meta: { title: '运营监控' },
|
||
|
component: () => import('@/views/pageMonitor/index.vue'),
|
||
|
},
|
||
|
{
|
||
|
path: '/scheduling',
|
||
|
name: 'scheduling',
|
||
|
meta: { title: '护理人员排班' },
|
||
|
component: () => import('@/views/pageScheduling/index.vue'),
|
||
|
},
|
||
|
{
|
||
|
path: '/operation',
|
||
|
name: 'operation',
|
||
|
meta: { title: '首台率' },
|
||
|
component: () => import('@/views/pageOperation/index.vue'),
|
||
|
},
|
||
|
{
|
||
|
path: '/room',
|
||
|
name: 'room',
|
||
|
meta: { title: '手术间利用率' },
|
||
|
component: () => import('@/views/pageRoom/index.vue'),
|
||
|
},
|
||
|
];
|
||
|
|
||
|
const router = new VueRouter({
|
||
|
routes,
|
||
|
});
|
||
|
|
||
|
router.beforeEach((to, from, next) => {
|
||
|
document.title = to.meta.title;
|
||
|
next();
|
||
|
});
|
||
|
|
||
|
export default router;
|