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) { if (success) {
data.history = [] data.history = []
tableRef.value?.scrollTo({ top: 0 }) tableRef.value?.scrollTo({ top: 0 })
$message.success(i18n.t('common.success')) $message.success(i18n.t('dialogue.handle_succ'))
} }
} finally { } finally {
data.loading = false data.loading = false

View File

@ -212,7 +212,7 @@ onMounted(() => onReload())
<template> <template>
<div class="nav-pane-container flex-box-v"> <div class="nav-pane-container flex-box-v">
<!-- top function bar --> <!-- 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 <content-search-input
:debounce-wait="1000" :debounce-wait="1000"
:full-search-icon="Search" :full-search-icon="Search"

View File

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