fix: user info

This commit is contained in:
2026-04-03 15:53:31 +02:00
parent 3083330fcd
commit 2f7e313c95
23 changed files with 82 additions and 62 deletions

View File

@@ -29,7 +29,7 @@ export async function useFetchJson<T = unknown>(url: string, opt?: RequestInit):
// Handle 401 — access token expired; try to refresh via the HTTPOnly refresh_token cookie
if (res.status === 401) {
const { useAuthStore } = await import('@/stores/user/auth')
const { useAuthStore } = await import('../stores/customer/auth')
const authStore = useAuthStore()
const refreshed = await authStore.refreshAccessToken()