generated from Flycro/laravel-nuxt
main
parent
05898fbd9b
commit
e97c3bcf83
|
|
@ -22,8 +22,6 @@ const links: NavigationTree[] = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
await useAsyncData('user', () => authStore.fetchUser())
|
|
||||||
|
|
||||||
if (authStore.user?.roles.includes('admin')) {
|
if (authStore.user?.roles.includes('admin')) {
|
||||||
links.push({
|
links.push({
|
||||||
label: 'Admin',
|
label: 'Admin',
|
||||||
|
|
@ -11,8 +11,6 @@ const links = [{
|
||||||
icon: 'i-heroicons-arrow-left-on-rectangle',
|
icon: 'i-heroicons-arrow-left-on-rectangle',
|
||||||
}]
|
}]
|
||||||
|
|
||||||
await useAsyncData('user', () => authStore.fetchUser())
|
|
||||||
|
|
||||||
if (authStore.user?.roles.includes('admin')) {
|
if (authStore.user?.roles.includes('admin')) {
|
||||||
links.push({
|
links.push({
|
||||||
label: 'Admin',
|
label: 'Admin',
|
||||||
Loading…
Reference in New Issue