Skip to content

Commit

Permalink
🐛 修复设置页即时搜索控制缺少判断
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyomotoi committed Oct 29, 2024
1 parent 13749da commit 2ba529c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/views/Settings/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ const searchInputPlaceholder = () => {
watch(
() => settingsStore.searchInput,
() => {
settingsStore.updateViewData(settingsStore.searchInput)
if (customStore.isInstantSearch || !settingsStore.searchInput) {
settingsStore.updateViewData(settingsStore.searchInput)
}
}
)
Expand Down

0 comments on commit 2ba529c

Please sign in to comment.