Template
1
0
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:
pany 2022-04-22 15:24:30 +08:00
parent 1d1b397187
commit 7bd6a4e896

View File

@ -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