Skip to content

Commit

Permalink
perf: ♻️ Search variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed May 15, 2024
1 parent a195b7e commit 7c55e50
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/AppSearch/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
circle
size="small"
:title="$t('common.search')"
@click="openPageModal"
@click="openSearchModal"
>
<el-icon size="12">
<ElIconSearch />
Expand All @@ -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()
}
</script>
Expand Down

0 comments on commit 7c55e50

Please sign in to comment.