fix: can not load the same key after delete and re-added (#226)
This commit is contained in:
parent
33caf873d6
commit
1bf4b0eee1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue