From 4e7abb457ffff1b7a751bf4707ba4ae1b49ab7fa Mon Sep 17 00:00:00 2001 From: xuechunyuan <17853500702@163.com> Date: Thu, 8 Jun 2023 17:21:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E8=B7=B3=E8=BD=AC=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E6=94=B9=E4=B8=BA=E9=87=91=E5=AE=8F=E7=BD=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/index/top/index.vue | 3 ++- src/page/lock/index.vue | 3 ++- src/router/axios.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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)