Compare commits

..

No commits in common. "b506e8a6a4bb9c35c6e52664f8f608e9d9a7be58" and "970ebcf9024d169ecb54c6c9c17795bca304939c" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -174,10 +174,10 @@ const onAdd = async () => {
tabStore.setSelectedKeys(server, nodeKey)
browserStore.reloadKey({ server, db, key })
}
dialogStore.closeNewKeyDialog()
} else if (!isEmpty(msg)) {
$message.error(msg)
}
dialogStore.closeNewKeyDialog()
} catch (e) {
return false
}

View File

@ -198,7 +198,6 @@ const useTabStore = defineStore('tab', {
})
this.tabList.push(tabItem)
tabIndex = this.tabList.length - 1
this._setActivatedIndex(tabIndex, true, subTab)
} else {
const tab = this.tabList[tabIndex]
tab.blank = false
@ -220,6 +219,7 @@ const useTabStore = defineStore('tab', {
tab.value = undefined
}
}
this._setActivatedIndex(tabIndex, true, subTab)
},
/**