perf: clear key filter after switch database
This commit is contained in:
parent
adf9e4347f
commit
cc696f9642
|
@ -44,6 +44,7 @@ const browserStore = useBrowserStore()
|
||||||
const connectionStore = useConnectionStore()
|
const connectionStore = useConnectionStore()
|
||||||
const render = useRender()
|
const render = useRender()
|
||||||
const browserTreeRef = ref(null)
|
const browserTreeRef = ref(null)
|
||||||
|
const filterInputRef = ref(null)
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const fullyLoaded = ref(false)
|
const fullyLoaded = ref(false)
|
||||||
const inCheckState = ref(false)
|
const inCheckState = ref(false)
|
||||||
|
@ -207,6 +208,7 @@ const handleSelectDB = async (db) => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
browserStore.setKeyFilter(props.server, {})
|
browserStore.setKeyFilter(props.server, {})
|
||||||
browserStore.closeDatabase(props.server, props.db)
|
browserStore.closeDatabase(props.server, props.db)
|
||||||
|
filterInputRef.value?.reset()
|
||||||
await browserStore.openDatabase(props.server, db)
|
await browserStore.openDatabase(props.server, db)
|
||||||
await nextTick()
|
await nextTick()
|
||||||
await connectionStore.saveLastDB(props.server, db)
|
await connectionStore.saveLastDB(props.server, db)
|
||||||
|
@ -291,6 +293,7 @@ watch(
|
||||||
<!-- top function bar -->
|
<!-- top function bar -->
|
||||||
<div class="flex-box-h nav-pane-func" style="height: 36px">
|
<div class="flex-box-h nav-pane-func" style="height: 36px">
|
||||||
<content-search-input
|
<content-search-input
|
||||||
|
ref="filterInputRef"
|
||||||
:debounce-wait="1000"
|
:debounce-wait="1000"
|
||||||
:full-search-icon="Search"
|
:full-search-icon="Search"
|
||||||
small
|
small
|
||||||
|
|
Loading…
Reference in New Issue