fix: can not load the same key after delete and re-added (#226)

This commit is contained in:
Lykin 2024-04-18 20:17:10 +08:00
parent 33caf873d6
commit 1bf4b0eee1
1 changed files with 1 additions and 0 deletions

View File

@ -724,6 +724,7 @@ const useTabStore = defineStore('tab', {
if (keys == null) {
// select nothing
tab.selectedKeys = []
tab.activatedKey = null
} else if (typeof keys === 'string') {
tab.selectedKeys = [keys]
} else {