Mr.Zhang
2023-10-24 2a4c325293b3c738d6606cc5ee244a15e4dee0a3
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)