Update Breadcrumb.vue

This commit is contained in:
Titw 2024-04-08 20:42:04 +08:00 committed by GitHub
parent efaf6eff9e
commit 62adcf035a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ const appStore = useAppStore()
transition: 0.3s var(--cubic-bezier-ease-in-out);
"
class="flex-center gap-2 cursor-pointer split"
@click="() => index === 0 ? router.push(item.path) : console.log('route not allowed')"
@click="() => index === 0 ? router.push(item.path) : false"
>
<nova-icon v-if="appStore.showBreadcrumbIcon" :icon="item.meta.icon" />
<span class="whitespace-nowrap">{{ $t(`route.${String(item.name)}`, item.meta.title) }}</span>