From caf41f61088981ac531990d024bb7dfe2c50c6da Mon Sep 17 00:00:00 2001 From: bb_pan Date: Wed, 29 Oct 2025 08:56:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) + }); }, }, };