Skip to content

Commit 0c4df57

Browse files
committed
highlight drawer for child routes
1 parent 3298523 commit 0c4df57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TheDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const items = computed(() =>
4444
},
4545
].map((item) => ({
4646
...item,
47-
selected: route.path === item.data.path,
47+
selected: item.data.path ? route.path.startsWith(item.data.path) : false,
4848
}))
4949
);
5050

0 commit comments

Comments
 (0)