pref: does not close dialog when adding data error (#338)

This commit is contained in:
Lykin 2024-08-20 14:29:25 +08:00
parent 970ebcf902
commit c082a0c41f
1 changed files with 1 additions and 1 deletions

View File

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