fix bug sidebar link active

This commit is contained in:
Geriano
2022-08-23 06:52:48 +07:00
parent c72ae149c0
commit 8a8bc4361d
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ const { menu } = defineProps({
padding: Number,
})
const active = route().current(menu.route_or_url)
const active = route().current(menu.route_or_url) || menu.actives.filter(active => route().current(active)).length > 0
const link = route().has(menu.route_or_url) ? route(menu.route_or_url) : menu.route_or_url
</script>