From 4d15e6b553c448e2e07527e9c06aa4b5f9b099cf Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期五, 11 九月 2026 16:51:18 +0800
Subject: [PATCH] update
---
ruoyi-ui/src/layout/components/Navbar.vue | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue
index dd3cd9c..34baaab 100644
--- a/ruoyi-ui/src/layout/components/Navbar.vue
+++ b/ruoyi-ui/src/layout/components/Navbar.vue
@@ -260,7 +260,7 @@
this.passwordOpen = false
setTimeout(() => {
this.$store.dispatch('LogOut').then(() => {
- location.href = '/login'
+ this.$router.push('/login')
})
}, 600)
}).finally(() => {
@@ -280,7 +280,7 @@
type: 'warning'
}).then(() => {
this.$store.dispatch('LogOut').then(() => {
- location.href = '/login'
+ this.$router.push('/login')
})
}).catch(() => {})
}
--
Gitblit v1.7.1