perf: ♻️ Search prompts

This commit is contained in:
viarotel 2024-05-18 16:45:11 +08:00
parent 2f2e1cfcd6
commit 0d963aab65

View File

@ -4,7 +4,7 @@
class=""
circle
size="small"
:title="`${$t('common.search')}Command/Ctrl + F`"
:title="`${$t('common.search')}${shortcutTip}`"
@click="openSearchModal"
>
<el-icon size="12">
@ -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()
})