This commit is contained in:
bb_pan 2025-10-29 08:56:04 +08:00
parent 78b907398e
commit caf41f6108
1 changed files with 6 additions and 3 deletions

View File

@ -101,16 +101,19 @@ export default {
type: "warning", type: "warning",
}) })
.then(() => { .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) console.log("logout", process.env.VUE_APP_BASE_API)
if (process.env.VUE_APP_BASE_API == '/iws/jxhzb-api') { if (process.env.VUE_APP_BASE_API == '/iws/jxhzb-api') {
window.location.href = 'http://sgwpdm.ah.sgcc.com.cn/iws' window.location.href = 'http://sgwpdm.ah.sgcc.com.cn/iws'
} else { } else {
this.$router.push({ path: "login" }) this.$router.push({ path: "/login" })
} }
}); });
}) })
.catch(() => {}); .catch((err) => {
console.log('🚀 ~ err-退出登录:', err)
});
}, },
}, },
}; };