mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-15 14:50:29 +08:00
fix: 无参数打开页签is-active样式问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user