diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue index 50cafe2..e81f66d 100644 --- a/src/page/index/top/index.vue +++ b/src/page/index/top/index.vue @@ -68,7 +68,8 @@ export default { }).then(() => { this.$store.dispatch("LogOut").then(() => { resetRouter(); - this.$router.push({ path: "/newlogin" }); + // this.$router.push({ path: "/newlogin" }); + window.location.href="http://jhoa.qd.gov.cn/Default.aspx"; }); }); }, diff --git a/src/page/lock/index.vue b/src/page/lock/index.vue index fe3149f..404df8a 100644 --- a/src/page/lock/index.vue +++ b/src/page/lock/index.vue @@ -49,7 +49,8 @@ export default { type: "warning" }).then(() => { this.$store.dispatch("LogOut").then(() => { - this.$router.push({ path: "/newlogin" }); + // this.$router.push({ path: "/newlogin" }); + window.location.href="http://jhoa.qd.gov.cn/Default.aspx"; }); }); }, diff --git a/src/router/axios.js b/src/router/axios.js index 0d4e0a0..159c319 100644 --- a/src/router/axios.js +++ b/src/router/axios.js @@ -65,7 +65,8 @@ axios.interceptors.response.use(res => { //如果在白名单里则自行catch逻辑处理 if (statusWhiteList.includes(status)) return Promise.reject(res); //如果是401则跳转到登录页面 - if (status === 401) store.dispatch('FedLogOut').then(() => router.push({path: '/newlogin'})); + // if (status === 401) store.dispatch('FedLogOut').then(() => router.push({path: '/newlogin'})); + if (status === 401) store.dispatch('FedLogOut').then(() => {window.location.href="http://jhoa.qd.gov.cn/Default.aspx";}); // 如果请求为非200否者默认统一处理 if(res.data.error != undefined && res.config.params != undefined && res.config.params.grant_type != undefined && res.config.params.grant_type == 'yawei') { return Promise.reject(res.data)