mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 20:08:49 +01:00
🎨 无缓存不展现
This commit is contained in:
parent
85477cc30a
commit
0774e263f5
1 changed files with 6 additions and 0 deletions
|
|
@ -340,6 +340,9 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
|
|||
event.preventDefault();
|
||||
break;
|
||||
} else if (target.id === "searchHistoryBtn") {
|
||||
if (!config.list || config.list.length === 0) {
|
||||
return;
|
||||
}
|
||||
let html = "";
|
||||
(config.list || []).forEach((s: string) => {
|
||||
if (s !== searchInputElement.value) {
|
||||
|
|
@ -353,6 +356,9 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
|
|||
event.preventDefault();
|
||||
return;
|
||||
} else if (target.id === "replaceHistoryBtn") {
|
||||
if (!config.replaceList || config.replaceList.length === 0) {
|
||||
return;
|
||||
}
|
||||
let html = "";
|
||||
(config.replaceList || []).forEach((s: string) => {
|
||||
if (s !== replaceInputElement.value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue