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.
68 lines
1.7 KiB
68 lines
1.7 KiB
10 months ago
|
import Vue from 'vue'
|
||
|
import Router from 'vue-router'
|
||
|
|
||
|
Vue.use(Router)
|
||
|
|
||
|
// 页面路由(独立页面)
|
||
|
const pageRoutes = [
|
||
|
// { path: '/', redirect: '/login' },
|
||
|
// {
|
||
|
// path: '/login',
|
||
|
// component: () => import('@/page-subspecialty/views/login'),
|
||
|
// name: 'login',
|
||
|
// meta: { title: '登录' }
|
||
|
// },
|
||
|
{
|
||
|
path: '/question',
|
||
|
component: () => import('@/page-subspecialty/views/question'),
|
||
|
name: 'question',
|
||
|
meta: { title: '问卷调查' }
|
||
|
},
|
||
|
{
|
||
|
path: '/questionEyehistory',
|
||
|
component: () => import('@/page-subspecialty/views/questionEyehistory'),
|
||
|
name: 'question',
|
||
|
meta: { title: '眼科病史问卷调查' }
|
||
|
},
|
||
|
{
|
||
|
path: '/jmjlQuestionEyehistory',
|
||
|
component: () => import('@/page-subspecialty/views/jmjlQuestionEyehistory'),
|
||
|
name: 'question',
|
||
|
meta: { title: '交联眼科病史问卷调查' }
|
||
|
},{
|
||
|
path: '/complete',
|
||
|
component: () => import('@/page-subspecialty/views/complete'),
|
||
|
name: 'complete',
|
||
|
meta: { title: '调查完成' }
|
||
|
},
|
||
|
// {
|
||
|
// path: '/article',
|
||
|
// component: () => import('@/page-subspecialty/views/article'),
|
||
|
// name: 'article',
|
||
|
// meta: { title: '文章' }
|
||
|
// },
|
||
|
// {
|
||
|
// path: '/articleList',
|
||
|
// component: () => import('@/page-subspecialty/views/articleList'),
|
||
|
// name: 'articleList',
|
||
|
// meta: { title: '文章列表' }
|
||
|
// }, {
|
||
|
// path: '/editor',
|
||
|
// component: () => import('@/page-subspecialty/views/editor'),
|
||
|
// name: 'editor',
|
||
|
// meta: { title: '编辑器' }
|
||
|
// }
|
||
|
]
|
||
|
|
||
|
const router = new Router({
|
||
|
mode: 'history',
|
||
|
routes: pageRoutes
|
||
|
})
|
||
|
|
||
|
router.beforeEach((to, from, next) => {
|
||
|
// to and from are both route objects. must call `next`.
|
||
|
next()
|
||
|
})
|
||
|
|
||
|
export default router
|