Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
前端:修复tab页切换bug
  • Loading branch information
4linuxfun committed Jan 12, 2023
commit 25ea2db3c6851b3c5938a277ab207a66bb2c8ca4
5 changes: 1 addition & 4 deletions www/src/stores/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ export const useTabsStore = defineStore('tabs', () => {
name: to.name,
path: to.fullPath
})
currentTab.value = to.name
cacheTabs.value.push(to.name)
}
console.log('update currenttab:', currentTab.value)
console.log('cacheTabs:', cacheTabs.value)
console.log('all tabs:', allTabs)
currentTab.value = to.name
}

function tabRemove(removeTab) {
Expand Down