diff --git a/src/page-subspecialty/router/index.js b/src/page-subspecialty/router/index.js index f46315b..0ef8e51 100644 --- a/src/page-subspecialty/router/index.js +++ b/src/page-subspecialty/router/index.js @@ -53,12 +53,6 @@ export const pageRoutes = [ name: 'detail', meta: { title: '患者360', isTab: true }, component: () => import('@/components/360View/index.vue') - }, - { - path: '/outpatientManagement-call', - component: () => import('@/page-subspecialty/views/modules/outpatientManagement/call'), - name: 'outpatientManagement', - meta: { title: '日常出诊', isTab: true } } ] @@ -159,8 +153,6 @@ router.beforeEach((to, from, next) => { if (window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] || fnCurrentRouteIsPageRoute(to, pageRoutes)) { if (to.name === 'detail' && to.query.doctorId) { loginByDocId(to.query.doctorId, next, to) - } else if (to.name === 'outpatientManagement' && to.query.userIdNumber) { - loginByUserId(to.query.userIdNumber, to.query.caUserSign, next, to) } else { return next() } @@ -172,6 +164,8 @@ router.beforeEach((to, from, next) => { next() } else if (to.name === '360view' && to.query.doctorId) { loginByDocId(to.query.doctorId, next, to.fullPath) + } else if (to.name === 'outpatientManagement' && to.query.userIdNumber) { + loginByUserId(to.query.userIdNumber, to.query.caUserSign, next, to) } else { if (to.name === 'detail') return // 获取字典列表, 添加并全局变量保存 @@ -268,8 +262,8 @@ function loginByUserId(userIdNumber, caUserSign, next, to) { console.log(111111,res.data) window.sessionStorage.setItem('xa-token', res.data.token) window.sessionStorage.setItem('qg-userData', JSON.stringify(res.data.currentUser)) - // getNavList(next) - // muneList(next) + getNavList(next) + muneList(next) return next() }).catch(() => { }) }