解决提示框遮挡问题,优化UserManagement和HeaderBar布局,导航栏重复点击警告,退出跳转页面的优化

This commit is contained in:
Ran_Chen
2025-04-03 15:44:41 +08:00
parent ad0493f8a0
commit 7550ac327e
9 changed files with 267 additions and 328 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
import Vue from 'vue'
import Vuex from 'vuex'
import Constant from '../utils/constant'
import {goToPage} from "@/utils";
Vue.use(Vuex)
@@ -51,7 +52,8 @@ export default new Vuex.Store({
logout({ commit }) {
return new Promise((resolve) => {
commit('clearAuth')
window.location.href = '/login';
goToPage(Constant.PAGE.LOGIN,true);
window.location.reload(); // 彻底重置状态
})
}
},