【issues/9098】tabs标签页关闭异常

This commit is contained in:
JEECG
2025-12-03 19:06:21 +08:00
parent 526734c5a5
commit 8c88f8adf5

View File

@ -50,7 +50,9 @@ export function useTabDropdown(tabContentProps: TabContentProps, getIsTabs: Comp
} else {
// 【TV360X-1039】当只有首页和另一个tab页时关闭左侧禁用
const validTabList = tabStore.getTabList.filter((item) => !item?.meta?.affix);
return validTabList[0].path === state.current?.path;
// update-begin--author:liaozhiyang---date:20251128---for【issues/9098】tabs标签页关闭异常
return validTabList[0]?.path === state.current?.path;
// update-end--author:liaozhiyang---date:20251128---for【issues/9098】tabs标签页关闭异常
}
};
// Close other