File encryption

 Shared login status across sites
This commit is contained in:
2025-07-26 01:37:23 +08:00
parent 081f3f609e
commit 0486c0d0e5
23 changed files with 670 additions and 65 deletions

View File

@@ -42,8 +42,8 @@ router.beforeEach(async (to, from, next) => {
const userStore = useUserStore()
// Initialize user state if not already initialized
if (!userStore.user && localStorage.getItem('authToken')) {
await userStore.initialize()
if (!userStore.user) {
await userStore.fetchUser(false)
}
if (to.matched.some((record) => record.meta.requiresAuth) && !userStore.isAuthenticated) {