退出跳转地址改为金宏网

main
xuechunyuan 3 years ago
parent 013c3a6f97
commit 4e7abb457f
  1. 3
      src/page/index/top/index.vue
  2. 3
      src/page/lock/index.vue
  3. 3
      src/router/axios.js

@ -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";
});
});
},

@ -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";
});
});
},

@ -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)

Loading…
Cancel
Save