修改tab刷新位置问题

This commit is contained in:
GGJ
2025-01-15 09:07:12 +08:00
parent 0cace11975
commit 0e41a5b9f1
4 changed files with 14 additions and 11 deletions

View File

@@ -77,6 +77,7 @@ const initTabs = () => {
name: item.name,
close: !item.meta.isAffix,
isKeepAlive: item.meta.isKeepAlive,
unshift:true
}
tabStore.addTabs(tabsParams)
}
@@ -100,6 +101,7 @@ const tabsDrop = () => {
// Tab Click
const tabClick = (tabItem: TabsPaneContext) => {
const fullPath = tabItem.props.name as string
console.log("🚀 ~ tabClick ~ fullPath:", tabItem)
router.push(fullPath)
}