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(() => {}) } } }