Skip to content

Commit 7abb56a

Browse files
authored
fix: handle title display issue for empty route.meta.title (#91)
1 parent bbadf78 commit 7abb56a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/NavBar.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ function onBack() {
1212
const { t } = useI18n()
1313
1414
const title = computed(() => {
15-
if (!route.meta || !route.meta.title)
15+
if (!route.meta)
1616
return ''
17-
return route.meta.i18n ? t(route.meta.i18n) : route.meta.title
17+
18+
return route.meta.i18n ? t(route.meta.i18n) : (route.meta.title || '')
1819
})
1920
</script>
2021

0 commit comments

Comments
 (0)