111
k94314517
2025-06-18 153404ffa0a9c6d23d2c2732b46fa6929e86294f
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)