mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-22 18:00:30 +08:00
fix: 菜单高亮 (#450)
This commit is contained in:
parent
2f1f2ae891
commit
2d1c222e6b
|
@ -85,7 +85,7 @@ const getHref = (item: MenuRoute) => {
|
|||
};
|
||||
|
||||
const getPath = (item: ListItemType) => {
|
||||
if (active.value.startsWith(item.path)) {
|
||||
if (active.value === item.path) {
|
||||
return active.value;
|
||||
}
|
||||
return item.meta?.single ? item.redirect : item.path;
|
||||
|
|
Loading…
Reference in New Issue
Block a user