From cc696f9642ec6e058e2d761956bff4976deb1692 Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:42:19 +0800 Subject: [PATCH] perf: clear key filter after switch database --- frontend/src/components/sidebar/BrowserPane.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/sidebar/BrowserPane.vue b/frontend/src/components/sidebar/BrowserPane.vue index 7d68a26f..4c7b678a 100644 --- a/frontend/src/components/sidebar/BrowserPane.vue +++ b/frontend/src/components/sidebar/BrowserPane.vue @@ -44,6 +44,7 @@ const browserStore = useBrowserStore() const connectionStore = useConnectionStore() const render = useRender() const browserTreeRef = ref(null) +const filterInputRef = ref(null) const loading = ref(false) const fullyLoaded = ref(false) const inCheckState = ref(false) @@ -207,6 +208,7 @@ const handleSelectDB = async (db) => { loading.value = true browserStore.setKeyFilter(props.server, {}) browserStore.closeDatabase(props.server, props.db) + filterInputRef.value?.reset() await browserStore.openDatabase(props.server, db) await nextTick() await connectionStore.saveLastDB(props.server, db) @@ -291,6 +293,7 @@ watch(