diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 5fb7ba6..dad5bd6 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -17,14 +17,22 @@ const title = computed(() => { return route.meta.i18n ? t(route.meta.i18n) : (route.meta.title || '') }) + +const showLeftArrow = computed(() => { + if (!route.meta) + return false + + return route.meta.level === 2 +}) diff --git a/src/components/TabBar.vue b/src/components/TabBar.vue index f8a323e..c3cf2a6 100644 --- a/src/components/TabBar.vue +++ b/src/components/TabBar.vue @@ -3,7 +3,7 @@ const { t } = useI18n() const active = ref(0) const route = useRoute() -const display = computed(() => { +const show = computed(() => { if (route.meta.level && route.meta.level !== 2) return true return false @@ -11,7 +11,7 @@ const display = computed(() => {