diff --git a/src/main.js b/src/main.js index 5f84d4ddd..3ed96e7dc 100644 --- a/src/main.js +++ b/src/main.js @@ -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') diff --git a/src/pages/details/otherLawsStandDetails/index.vue b/src/pages/details/otherLawsStandDetails/index.vue index 4c3b9b96d..b83f9b801 100644 --- a/src/pages/details/otherLawsStandDetails/index.vue +++ b/src/pages/details/otherLawsStandDetails/index.vue @@ -1679,6 +1679,8 @@ export default { } }) window.open(routeUrl.href, '_blank') + }else { + this.$message.error('政策号已不存在!') } }, e => { })