fix: TagsView 组件判定 active 状态失败
This commit is contained in:
parent
1d1b397187
commit
7bd6a4e896
@ -40,8 +40,8 @@ const state = reactive({
|
|||||||
left: 0,
|
left: 0,
|
||||||
selectedTag: {} as ITagView,
|
selectedTag: {} as ITagView,
|
||||||
affixTags: [] as ITagView[],
|
affixTags: [] as ITagView[],
|
||||||
isActive: (route: ITagView) => {
|
isActive: (tagView: ITagView) => {
|
||||||
return route.path === route.path
|
return tagView.path === route.path
|
||||||
},
|
},
|
||||||
isAffix: (tag: ITagView) => {
|
isAffix: (tag: ITagView) => {
|
||||||
return tag.meta && tag.meta.affix
|
return tag.meta && tag.meta.affix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user