From 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期三, 06 十二月 2023 08:41:32 +0800 Subject: [PATCH] bug --- web_standard/src/components/common/Header.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/web_standard/src/components/common/Header.vue b/web_standard/src/components/common/Header.vue index 82597f4..9c892d0 100644 --- a/web_standard/src/components/common/Header.vue +++ b/web_standard/src/components/common/Header.vue @@ -200,16 +200,18 @@ * 閫�鍑虹櫥褰� */ logout () { - console.log(this.$store.state.companyId); - debugger + // console.log(this.$store.state.companyId); + // debugger logout() .then(() => { let companyId = this.$store.state.userInfo.company.id this.setUserInfo(null) this.$cache.twoFA.removePassword() - this.$router.push({ name: 'login', params: { - companyId - }}) + this.$store.commit('setCompanyId', companyId) + window.location.reload() + // this.$router.push({ name: 'login', params: { + // companyId + // }}) }) .catch(e => { this.$tip.apiFailed(e) -- Gitblit v1.9.3