feat(admin): add categories and teams management page

This commit is contained in:
gabdevele
2026-06-15 12:48:18 +02:00 Unverified
parent 48f0f65dc1
commit 8bf6f29561
13 changed files with 354 additions and 52 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
export default defineNuxtPlugin(async () => {
const auth = useAuth()
const currentPath = useNuxtApp().$router.currentRoute.value.path
if ((auth.token.value || auth.tokenState.value) && !auth.user.value) {
try {
await auth.syncUser()
await auth.syncUser({ currentPath })
} catch (error) {
const status = (error as any)?.statusCode || (error as any)?.status || (error as any)?.response?.status