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) {
|
if (keys == null) {
|
||||||
// select nothing
|
// select nothing
|
||||||
tab.selectedKeys = []
|
tab.selectedKeys = []
|
||||||
|
tab.activatedKey = null
|
||||||
} else if (typeof keys === 'string') {
|
} else if (typeof keys === 'string') {
|
||||||
tab.selectedKeys = [keys]
|
tab.selectedKeys = [keys]
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue