|
|
@@ -119,6 +119,11 @@ router.beforeEach(async (to, from, next) => {
|
|
|
next({ path: '/qhse/measure/ledger' })
|
|
|
}
|
|
|
|
|
|
+ if (source && source === 'yyhy') {
|
|
|
+ sessionStorage.setItem('LOGIN_SOURCE', source as string)
|
|
|
+ next({ path: '/operation-meeting' })
|
|
|
+ }
|
|
|
+
|
|
|
next({ path: '/' })
|
|
|
} else {
|
|
|
// 获取所有字典
|
|
|
@@ -182,6 +187,11 @@ router.beforeEach(async (to, from, next) => {
|
|
|
next({ path: '/qhse/measure/ledger' })
|
|
|
}
|
|
|
|
|
|
+ if (source && source === 'yyhy') {
|
|
|
+ sessionStorage.setItem('LOGIN_SOURCE', source as string)
|
|
|
+ next({ path: '/operation-meeting' })
|
|
|
+ }
|
|
|
+
|
|
|
next({ path: '/index' })
|
|
|
} else if (whiteList.indexOf(to.path) !== -1) {
|
|
|
const code = to.query.code
|
|
|
@@ -208,6 +218,8 @@ router.beforeEach(async (to, from, next) => {
|
|
|
next(`/login?redirect=/video_center/protocol`)
|
|
|
} else if (source && source === 'qhse') {
|
|
|
next(`/login?redirect=/qhse/measure/ledger`)
|
|
|
+ } else if (source && source === 'yyhy') {
|
|
|
+ next(`/login?redirect=/operation-meeting`)
|
|
|
} else next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
|
|
}
|
|
|
}
|