fix: 修复配置路由属性fixedTagfalse后当前标签页不可关闭的问题

This commit is contained in:
xiaoxian521
2024-06-12 14:56:09 +08:00
parent 933ced4ac4
commit 47afa9209e
2 changed files with 13 additions and 5 deletions

View File

@@ -125,6 +125,12 @@ export function useTags() {
}
}
const isFixedTag = computed(() => {
return item => {
return isBoolean(item?.meta?.fixedTag) && item?.meta?.fixedTag === true;
};
});
const iconIsActive = computed(() => {
return (item, index) => {
if (index === 0) return;
@@ -221,6 +227,7 @@ export function useTags() {
buttonTop,
buttonLeft,
translateX,
isFixedTag,
pureSetting,
activeIndex,
getTabStyle,