From 0d963aab65297964a19b5e7ed1982732e96bcfcb Mon Sep 17 00:00:00 2001 From: viarotel Date: Sat, 18 May 2024 16:45:11 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E2=99=BB=EF=B8=8F=20Search=20prompts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppSearch/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/AppSearch/index.vue b/src/components/AppSearch/index.vue index a37f0a10..ecf6b2c5 100644 --- a/src/components/AppSearch/index.vue +++ b/src/components/AppSearch/index.vue @@ -4,7 +4,7 @@ class="" circle size="small" - :title="`${$t('common.search')}(Command/Ctrl + F)`" + :title="`${$t('common.search')}(${shortcutTip})`" @click="openSearchModal" > @@ -21,6 +21,10 @@ const themeStore = useThemeStore() const activeTab = inject('activeTab') +const shortcutTip = `${ + window.electron.process.platform === 'darwin' ? 'Command' : 'Ctrl' +} + F` + watch([() => themeStore.value, () => activeTab.value], () => { closeSearchModal() })