fix: BUG修改
This commit is contained in:
parent
b6357fd005
commit
ebae47d39c
@ -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();
|
||||
}
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user