| | |
| | | * 退出登录 |
| | | */ |
| | | 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) |