fix: fix links
This commit is contained in:
@ -32,9 +32,11 @@
|
||||
</div>
|
||||
<UiImgWrapper :src="`/api/public/file/${component.img[index]}_l.webp`">
|
||||
<template #button>
|
||||
<UiButtonArrow :arrow="true">
|
||||
{{ item.title }}
|
||||
</UiButtonArrow>
|
||||
<nuxt-link :to="{ name: `id-slug___${$i18n.locale}`, params: { id: linksInfo[index].id, slug: linksInfo[index].slug } }">
|
||||
<UiButtonArrow :arrow="true">
|
||||
{{ item.title }}
|
||||
</UiButtonArrow>
|
||||
</nuxt-link>
|
||||
</template>
|
||||
</UiImgWrapper>
|
||||
</div>
|
||||
@ -83,4 +85,29 @@ type Component = {
|
||||
defineProps<{
|
||||
component: Component
|
||||
}>()
|
||||
|
||||
const menuStore = useMenuStore()
|
||||
|
||||
const linksInfo = ref([
|
||||
{
|
||||
id: menuStore.getInvestitionMenu()?.id,
|
||||
slug: menuStore.getInvestitionMenu()?.front_menu_lang.at(0)?.link_rewrite,
|
||||
},
|
||||
{
|
||||
id: menuStore.getAboutGoldMenu()?.id,
|
||||
slug: menuStore.getAboutGoldMenu()?.front_menu_lang.at(0)?.link_rewrite,
|
||||
},
|
||||
{
|
||||
id: menuStore.getBusinessMenu()?.id,
|
||||
slug: menuStore.getBusinessMenu()?.front_menu_lang.at(0)?.link_rewrite,
|
||||
},
|
||||
{
|
||||
id: menuStore.getAboutUsMenu()?.id,
|
||||
slug: menuStore.getAboutUsMenu()?.front_menu_lang.at(0)?.link_rewrite,
|
||||
},
|
||||
{
|
||||
id: menuStore.getContactMenu()?.id,
|
||||
slug: menuStore.getContactMenu()?.front_menu_lang.at(0)?.link_rewrite,
|
||||
},
|
||||
])
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user