fix: saving of the last opened database is ineffective
This commit is contained in:
parent
686f73c3dd
commit
ba55cbcbd3
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue