|
@ -5,16 +5,14 @@ import HomeView from '../views/HomeView.vue'; |
|
|
|
|
|
|
|
|
Vue.use(VueRouter) |
|
|
Vue.use(VueRouter) |
|
|
const whiteSlideList = [ '/ui', '/hosInformation']; //侧边导航白名单
|
|
|
const whiteSlideList = [ '/ui', '/hosInformation']; //侧边导航白名单
|
|
|
const blackHeaderList = [ |
|
|
const blackHeaderList = ['/ErrorAccess']; //头部导航黑名单
|
|
|
]; //头部导航黑名单
|
|
|
const whiteFooterList = ['/','/doctorInformation' ,'/hosInformation','/addNewTreatment']; //底部白名单
|
|
|
const whiteFooterList = ['/','/doctorInformation' ,'/hosInformation','/addNewTreatment' |
|
|
|
|
|
]; //底部白名单
|
|
|
|
|
|
const routes = [ |
|
|
const routes = [ |
|
|
{ |
|
|
{ |
|
|
path: '/', |
|
|
path: '/', |
|
|
name: '首页', |
|
|
name: '首页', |
|
|
component: HomeView, |
|
|
component: HomeView, |
|
|
meta: { |
|
|
meta: { |
|
|
title: '医生列表', |
|
|
title: '医生列表', |
|
|
hideBreadcrumb: true // 首页不显示面包屑
|
|
|
hideBreadcrumb: true // 首页不显示面包屑
|
|
|
} |
|
|
} |
|
@ -23,16 +21,25 @@ const routes = [ |
|
|
path: '/doctorInformation', |
|
|
path: '/doctorInformation', |
|
|
name: '医生信息', |
|
|
name: '医生信息', |
|
|
component: () => import('../views/DoctorInformation.vue'), |
|
|
component: () => import('../views/DoctorInformation.vue'), |
|
|
meta: { |
|
|
meta: { |
|
|
title: '编辑信息', |
|
|
title: '编辑信息', |
|
|
breadcrumbParent: '首页' // 手动指定父级
|
|
|
breadcrumbParent: '首页' // 手动指定父级
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
|
|
|
path: '/ErrorAccess', |
|
|
|
|
|
name: '访问出错', |
|
|
|
|
|
component: () => import('../views/ErrorAccess.vue'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '访问出错', |
|
|
|
|
|
hideBreadcrumb: true // 首页不显示面包屑
|
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
path: '/hosInformation', |
|
|
path: '/hosInformation', |
|
|
name: '医院信息', |
|
|
name: '医院信息', |
|
|
component: () => import('../views/HosInformation.vue'), |
|
|
component: () => import('../views/HosInformation.vue'), |
|
|
meta: { |
|
|
meta: { |
|
|
title: '编辑医院', |
|
|
title: '编辑医院', |
|
|
breadcrumbParent: '医生信息' // 手动指定父级
|
|
|
breadcrumbParent: '医生信息' // 手动指定父级
|
|
|
// r如果想隐藏中间层级
|
|
|
// r如果想隐藏中间层级
|
|
@ -40,12 +47,12 @@ const routes = [ |
|
|
// hideInBreadcrumb: true // 可选:隐藏当前项
|
|
|
// hideInBreadcrumb: true // 可选:隐藏当前项
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
path: '/addNewTreatment', |
|
|
path: '/addNewTreatment', |
|
|
component: () => import( /* webpackChunkName: "addNewTreatment" */ '../views/AddNewTreatment.vue'), |
|
|
component: () => import( /* webpackChunkName: "addNewTreatment" */ '../views/AddNewTreatment.vue'), |
|
|
name: '新增套餐', |
|
|
name: '新增套餐', |
|
|
meta: { |
|
|
meta: { |
|
|
hideBreadcrumb: true // 首页不显示面包屑
|
|
|
hideBreadcrumb: true // 首页不显示面包屑
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|