优化部分代码

This commit is contained in:
2025-06-14 00:40:50 +08:00
parent c21fd11637
commit 8c69f3c29f
2 changed files with 133 additions and 36 deletions

View File

@@ -1,7 +1,3 @@
import { ref } from 'vue';
// This flag is used by the router guard to know if a navigation
// is occurring immediately after a successful login.
// If true, the guard can choose to bypass an immediate session check (e.g., getUserInfo)
// for that first navigation, assuming the new token is valid.
export const justLoggedIn = ref(false);