![]()
@@ -80,7 +80,7 @@ const navbarRightClass = computed(() => {
});
/**
- * 注销登录
+ * 退出登录
*/
function logout() {
ElMessageBox.confirm("确定注销并退出系统吗?", "提示", {
diff --git a/src/main.ts b/src/main.ts
index 0167bf8c..38b64409 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -9,7 +9,7 @@ import "@/styles/dark/css-vars.css";
import "@/styles/index.scss";
import "uno.css";
-// 全局引入 animate.css
+// 过渡动画
import "animate.css";
// 自动为某些默认事件(如 touchstart、wheel 等)添加 { passive: true },提升滚动性能并消除控制台的非被动事件监听警告
diff --git a/src/store/modules/user.store.ts b/src/store/modules/user.store.ts
index d4de3587..5e4d8d74 100644
--- a/src/store/modules/user.store.ts
+++ b/src/store/modules/user.store.ts
@@ -94,9 +94,9 @@ export const useUserStore = defineStore("user", () => {
*/
function clearSessionAndCache() {
return new Promise
((resolve) => {
- clearToken();
- usePermissionStoreHook().resetRouter();
useDictStoreHook().clearDictCache();
+ usePermissionStoreHook().resetRouter();
+ clearToken();
userInfo.value = {} as UserInfo;
resolve();
});