feat: There is no way the, 配置公开搜索中心 外部访问 ? and &

This commit is contained in:
super_liu
2022-04-14 14:59:10 +08:00
parent e204f1d4b5
commit 28c3a38ed3
+2 -2
View File
@@ -189,7 +189,7 @@ router.beforeEach(function (to, from, next) {
if (taskId !== undefined && taskId !== null && prcId !== undefined && prcId !== null) {
extractedVerify(token)
}else {
if((fromName === undefined || fromName === null) && path.indexOf("/standardSearch/All&userName") !== -1){
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName") !== -1 || path.indexOf("/standardSearch/All?userName") !== -1)){
extractedLocalStorage("standardSearch/All",userName)
localStorage.setItem('external', "external")
next('/LoginVerifyNoEncryption')
@@ -388,7 +388,7 @@ router.beforeEach(function (to, from, next) {
next()
}
}else {
if((fromName === undefined || fromName === null) && path.indexOf("/standardSearch/All&userName") !== -1) {
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName") !== -1 || path.indexOf("/standardSearch/All?userName") !== -1)) {
extractedLocalStorage("standardSearch/All",userName)
localStorage.setItem('external', "external")
next('/LoginVerifyNoEncryption')