We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1a3895 commit 78bedd3Copy full SHA for 78bedd3
src/components/TabBar.vue
@@ -3,11 +3,9 @@ const { t } = useI18n()
3
const active = ref(0)
4
const route = useRoute()
5
6
-const show = computed(() => {
7
- if (route.meta.level && route.meta.level !== 2)
8
- return true
9
- return false
10
-})
+const routeWhiteList = ['home', 'profile']
+
+const show = computed(() => routeWhiteList.includes(route.name))
11
</script>
12
13
<template>
0 commit comments