RuoYi
2025-04-27 7b6fdb3a893275ff82ba5c868287a1e12dcd75f1
ruoyi-ui/src/layout/components/Navbar.vue
@@ -95,16 +95,16 @@
    toggleSideBar() {
      this.$store.dispatch('app/toggleSideBar')
    },
    async logout() {
    logout() {
      this.$confirm('确定注销并退出系统吗?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        this.$store.dispatch('LogOut').then(() => {
          location.href = '/index';
          location.href = '/index'
        })
      }).catch(() => {});
      }).catch(() => {})
    }
  }
}