feat(admin): add categories and teams management page
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user