admin/src/views/no-permissions.vue
@@ -18,12 +18,15 @@ components: { NotAllow }, methods: { ...mapMutations(['setUserInfo']), // 退出登录 /** * 退出登录 */ logout () { logout() .then(() => { this.$router.push({ name: 'login' }) this.setUserInfo(null) this.$cache.twoFA.removePassword() this.$router.push({ name: 'login' }) }) .catch(e => { this.$tip.apiFailed(e)