base zone components and type refinements
This commit is contained in:
parent
9d96e3a6dc
commit
5c56af0dad
38 changed files with 323 additions and 54 deletions
|
@ -17,9 +17,9 @@
|
|||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-if="navbar_sub_items?.length != 0"
|
||||
v-if="navbar_sub_items && navbar_sub_items?.length != 0"
|
||||
primary
|
||||
class="h-12 min-h-fit w-full px-12 border-t-2 border-white justify-center items-center gap-5 flex"
|
||||
class="h-fit min-h-fit w-full px-12 border-t-2 border-white justify-center items-center gap-5 flex"
|
||||
>
|
||||
<NuxtLink
|
||||
primary-sublink
|
||||
|
@ -44,7 +44,7 @@ const baseUrl = useStrapiUrl().replace("/api", "");
|
|||
const { findOne } = useStrapi();
|
||||
|
||||
const { data: global } = await useAsyncData("global", () => findOne<Global>("global"));
|
||||
const { navbar } = global.value?.data as unknown as Global;
|
||||
const { navbar } = global.value?.data ?? ({} as Global);
|
||||
|
||||
const navbar_sub_items = computed(() => {
|
||||
return navbar.navbar_items.find((ni) => ni.URL == params?.[0])?.navbar_sub_items;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue