diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index fc6eaa13..a6ccfd74 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -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) + }); }, }, };