fix: 菜单高亮 (#450)

This commit is contained in:
liweijie0812 2023-03-16 20:02:41 +08:00 committed by GitHub
parent 2f1f2ae891
commit 2d1c222e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ const getHref = (item: MenuRoute) => {
}; };
const getPath = (item: ListItemType) => { const getPath = (item: ListItemType) => {
if (active.value.startsWith(item.path)) { if (active.value === item.path) {
return active.value; return active.value;
} }
return item.meta?.single ? item.redirect : item.path; return item.meta?.single ? item.redirect : item.path;