From 7c55e50edc1afc162696b9581ae5d25c01580ffc Mon Sep 17 00:00:00 2001 From: viarotel Date: Wed, 15 May 2024 11:58:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E2=99=BB=EF=B8=8F=20Search=20variable?= =?UTF-8?q?=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppSearch/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/AppSearch/index.vue b/src/components/AppSearch/index.vue index 474e94d7..4a5aeba1 100644 --- a/src/components/AppSearch/index.vue +++ b/src/components/AppSearch/index.vue @@ -5,7 +5,7 @@ circle size="small" :title="$t('common.search')" - @click="openPageModal" + @click="openSearchModal" > @@ -22,18 +22,18 @@ const themeStore = useThemeStore() const activeTab = inject('activeTab') watch([() => themeStore.value, () => activeTab.value], () => { - closePageModal() + closeSearchModal() }) window.electron.ipcRenderer.on('focus-on-search', (event, ret) => { - openPageModal() + openSearchModal() }) -function openPageModal() { +function openSearchModal() { window.findInPageModal.open({ isDark: themeStore.isDark }) } -function closePageModal() { +function closeSearchModal() { window.findInPageModal.close() }