fix: 无参数打开页签is-active样式问题

This commit is contained in:
hb0730
2024-03-27 11:06:45 +08:00
parent fbacf8e85e
commit 4190e8411a
5 changed files with 51 additions and 4 deletions

View File

@@ -117,8 +117,10 @@ export function useTags() {
if (isBoolean(route?.meta?.showLink) && route?.meta?.showLink === false) {
if (Object.keys(route.query).length > 0) {
return isEqual(route.query, item.query) ? previous : next;
} else {
} else if (Object.keys(route.params).length > 0) {
return isEqual(route.params, item.params) ? previous : next;
} else {
return route.path === item.path ? previous : next;
}
} else {
return route.path === item.path ? previous : next;