🎨 无缓存不展现

This commit is contained in:
Vanessa 2022-11-29 23:25:01 +08:00
parent 85477cc30a
commit 0774e263f5

View file

@ -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) {