This commit is contained in:
lcw
2025-08-27 17:26:29 +08:00
parent 42f5e37f65
commit f4c108b4b4
47 changed files with 4087 additions and 300 deletions

View File

@ -1,12 +1,15 @@
import router from './router'
import store from './store'
import {
unifiedLogin
} from "@/api/user-manage";
import {
setItem,
getItem,
removeAllItem
} from "@/utils/storage";
// 白名单
const whiteList = ['/login','/oatuh_login','/404', '/401']
const whiteList = ['/login', '/oatuh_login', '/404', '/401', '/focusExploration', '/clueVerification', '/deploymentApproval']
/**
* 路由前置守卫
* to 去哪里
@ -46,7 +49,8 @@ router.beforeEach(async (to, from, next) => {
next()
} else {
if (isOatuh) {
next('/oatuh_login')
const idEntityCard = getItem('idEntityCard')
next(`/oatuh_login?token=${Base64.encode(idEntityCard)}`)
} else {
next('/login')
}