diff --git a/src/routers/index.ts b/src/routers/index.ts index 93f27c1..c0d3f36 100644 --- a/src/routers/index.ts +++ b/src/routers/index.ts @@ -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(); } diff --git a/src/views/sevenLargeScreen/indexL.vue b/src/views/sevenLargeScreen/indexL.vue index 3afc27f..3687093 100644 --- a/src/views/sevenLargeScreen/indexL.vue +++ b/src/views/sevenLargeScreen/indexL.vue @@ -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); } }