fix: 修复tab页只剩一个的时候无法关闭的问题

This commit is contained in:
2024-09-28 23:07:25 +08:00
parent 0acd4829c5
commit 0594ae91c7
2 changed files with 3 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ watch(
// 点击页签
const handleTabClick = (key: string) => {
const obj = tabsStore.tabList.find((i) => i.path === key)
obj ? router.push(obj.fullPath) : router.push(key)
obj ? router.push(obj.fullPath || obj.path) : router.push(key)
}
</script>