fix: saving of the last opened database is ineffective

This commit is contained in:
Lykin 2023-12-04 18:54:06 +08:00
parent 686f73c3dd
commit ba55cbcbd3
3 changed files with 3 additions and 2 deletions

View File

@ -119,7 +119,7 @@ const cleanHistory = async () => {
if (success) {
data.history = []
tableRef.value?.scrollTo({ top: 0 })
$message.success(i18n.t('common.success'))
$message.success(i18n.t('dialogue.handle_succ'))
}
} finally {
data.loading = false

View File

@ -212,7 +212,7 @@ onMounted(() => onReload())
<template>
<div class="nav-pane-container flex-box-v">
<!-- top function bar -->
<div class="flex-box-h nav-pane-func">
<div class="flex-box-h nav-pane-func" style="height: 36px">
<content-search-input
:debounce-wait="1000"
:full-search-icon="Search"

View File

@ -301,6 +301,7 @@ const openConnection = async (name) => {
if (!isEmpty(connectingServer.value)) {
tabStore.upsertTab({
server: name,
db: browserStore.getSelectedDB(name),
})
}
} catch (e) {