bug: 修复页面跳转错误问题

This commit is contained in:
wxyclub
2023-10-12 15:40:06 +08:00
parent 178f8276c4
commit 6947ebbdc1
+4
View File
@@ -298,6 +298,10 @@ router.beforeEach(function (to, from, next) {
}
}
} else {
localStorage.removeItem("routerUrl")
localStorage.setItem('routerUrl', 'home2')
localStorage.removeItem("routerParam")
localStorage.setItem('routerParam', '')
if ((token === null || token === '' ) && toName === 'OtherStandardDetails') {
if (document.cookie) {
next()