mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-21 11:29:20 +08:00
fix: TagsView 组件判定 active 状态失败
This commit is contained in:
parent
1d1b397187
commit
7bd6a4e896
@ -40,8 +40,8 @@ const state = reactive({
|
||||
left: 0,
|
||||
selectedTag: {} as ITagView,
|
||||
affixTags: [] as ITagView[],
|
||||
isActive: (route: ITagView) => {
|
||||
return route.path === route.path
|
||||
isActive: (tagView: ITagView) => {
|
||||
return tagView.path === route.path
|
||||
},
|
||||
isAffix: (tag: ITagView) => {
|
||||
return tag.meta && tag.meta.affix
|
||||
|
Loading…
x
Reference in New Issue
Block a user