generated from Flycro/laravel-nuxt
fix: Hopefully fix SSR in Navigation
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
13a4730c15
commit
05898fbd9b
|
|
@ -22,7 +22,9 @@ const links: NavigationTree[] = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
/* if (authStore.user?.roles.includes('admin')) {
|
await useAsyncData('user', () => authStore.fetchUser())
|
||||||
|
|
||||||
|
if (authStore.user?.roles.includes('admin')) {
|
||||||
links.push({
|
links.push({
|
||||||
label: 'Admin',
|
label: 'Admin',
|
||||||
to: '/admin',
|
to: '/admin',
|
||||||
|
|
@ -40,7 +42,7 @@ const links: NavigationTree[] = [
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
} */
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,15 @@ const links = [{
|
||||||
icon: 'i-heroicons-arrow-left-on-rectangle',
|
icon: 'i-heroicons-arrow-left-on-rectangle',
|
||||||
}]
|
}]
|
||||||
|
|
||||||
/* if (authStore.user?.roles.includes('admin')) {
|
await useAsyncData('user', () => authStore.fetchUser())
|
||||||
|
|
||||||
|
if (authStore.user?.roles.includes('admin')) {
|
||||||
links.push({
|
links.push({
|
||||||
label: 'Admin',
|
label: 'Admin',
|
||||||
to: '/admin',
|
to: '/admin',
|
||||||
icon: 'i-heroicons-cog-solid',
|
icon: 'i-heroicons-cog-solid',
|
||||||
})
|
})
|
||||||
} */
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue