This commit is contained in:
Vanessa 2025-08-26 11:04:40 +08:00
parent 877e2c4334
commit 4d07212fee
2 changed files with 4 additions and 4 deletions

View file

@ -255,10 +255,10 @@ ${checkUpdateHTML}
});
});
about.element.querySelector("#vacuumDataIndex").addEventListener("click", () => {
fetchPost("/api/system/vacuumDataIndex", {}, (response) => {});
fetchPost("/api/system/vacuumDataIndex", {}, () => {});
});
about.element.querySelector("#rebuildDataIndex").addEventListener("click", () => {
fetchPost("/api/system/rebuildDataIndex", {}, (response) => {});
fetchPost("/api/system/rebuildDataIndex", {}, () => {});
});
about.element.querySelector("#exportLog").addEventListener("click", () => {
fetchPost("/api/system/exportLog", {}, (response) => {

View file

@ -300,12 +300,12 @@ export const initAbout = () => {
event.stopPropagation();
break;
} else if (target.id === "vacuumDataIndex") {
fetchPost("/api/system/vacuumDataIndex", {}, (response) => {});
fetchPost("/api/system/vacuumDataIndex", {}, () => {});
event.preventDefault();
event.stopPropagation();
break;
} else if (target.id === "rebuildDataIndex") {
fetchPost("/api/system/rebuildDataIndex", {}, (response) => {});
fetchPost("/api/system/rebuildDataIndex", {}, () => {});
event.preventDefault();
event.stopPropagation();
break;