mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 11:47:55 +01:00
feat(module): add support for vue using unplugin (#2416)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -76,7 +76,16 @@ useServerSeoMeta({
|
||||
twitterCard: 'summary_large_image'
|
||||
})
|
||||
|
||||
provide('navigation', navigation)
|
||||
const updatedNavigation = computed(() => navigation.value.map(item => ({
|
||||
...item,
|
||||
children: item.children?.map(child => ({
|
||||
...child,
|
||||
active: child.title === 'Installation' ? route.path.startsWith('/getting-started/installation') : undefined,
|
||||
children: child.title === 'Installation' ? [] : child.children
|
||||
})) || []
|
||||
})))
|
||||
|
||||
provide('navigation', updatedNavigation)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user