fix: BUG修改

This commit is contained in:
kun 2024-04-02 10:07:31 +08:00
parent b6357fd005
commit ebae47d39c
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ router.beforeEach(async (to, from, next) => {
console.log("判断是访问登陆页,有:", from.fullPath);
console.log("判断是访问登陆页globalStore.token有:", globalStore.token);
if (globalStore.token) return next(from.fullPath);
if (globalStore.token && from.fullPath !='/') return next(from.fullPath);
// resetRouter();//重置路由
return next();
}

View File

@ -549,6 +549,7 @@ function jumpBgd() {
// ()
window.location.replace("http://101.43.164.214:11111/#/login?token=" + store.token);
// window.location.replace("http://192.168.34.138:8080/#/login?token=" + store.token);
// window.open("http://192.168.34.138:8080/#/login?token=" + store.token);
}
}
</script>