|
@@ -98,11 +98,21 @@ router.beforeEach(async (to, from, next) => {
|
|
|
|
|
|
|
|
authUtil.setToken(res)
|
|
authUtil.setToken(res)
|
|
|
const source = to.query.source
|
|
const source = to.query.source
|
|
|
- if (source) {
|
|
|
|
|
|
|
+ if (source && source === 'zhly') {
|
|
|
sessionStorage.setItem('LOGIN_SOURCE', source as string)
|
|
sessionStorage.setItem('LOGIN_SOURCE', source as string)
|
|
|
next({ path: '/oli-connection/monitoring' })
|
|
next({ path: '/oli-connection/monitoring' })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (source && source === 'znzq') {
|
|
|
|
|
+ sessionStorage.setItem('LOGIN_SOURCE', source as string)
|
|
|
|
|
+ next({ path: '/iotdayilyreport/IotRyXjDailyReport/summary' })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (source && source === 'spzx') {
|
|
|
|
|
+ sessionStorage.setItem('LOGIN_SOURCE', source as string)
|
|
|
|
|
+ next({ path: '/video_center/protocol' })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
next({ path: '/' })
|
|
next({ path: '/' })
|
|
|
} else {
|
|
} else {
|
|
|
// 获取所有字典
|
|
// 获取所有字典
|