This commit is contained in:
parent
78b907398e
commit
caf41f6108
|
|
@ -101,16 +101,19 @@ export default {
|
|||
type: "warning",
|
||||
})
|
||||
.then(() => {
|
||||
this.$store.dispatch("LogOut").then(() => {
|
||||
this.$store.dispatch("LogOut").then((res) => {
|
||||
console.log('🚀 ~ res-退出登录:', res)
|
||||
console.log("logout", process.env.VUE_APP_BASE_API)
|
||||
if (process.env.VUE_APP_BASE_API == '/iws/jxhzb-api') {
|
||||
window.location.href = 'http://sgwpdm.ah.sgcc.com.cn/iws'
|
||||
} else {
|
||||
this.$router.push({ path: "login" })
|
||||
this.$router.push({ path: "/login" })
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch((err) => {
|
||||
console.log('🚀 ~ err-退出登录:', err)
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue