~
k94314517
2025-06-18 2d1d8d97966cbdb119456a35959b8e783476a2a9
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)