diff --git a/app/src/config/image.ts b/app/src/config/image.ts
index d0e23dae5..50fc21325 100644
--- a/app/src/config/image.ts
+++ b/app/src/config/image.ts
@@ -98,7 +98,7 @@ export const image = {
}, undefined, true);
} else if (target.id === "removeAVAll") {
confirmDialog(window.siyuan.languages.deleteOpConfirm, `${window.siyuan.languages.clearAll}`, () => {
- fetchPost("/api/asset/removeUnusedAttributeViews", {}, () => {
+ fetchPost("/api/av/removeUnusedAttributeViews", {}, () => {
avListElement.innerHTML = `
${window.siyuan.languages.emptyContent}`;
avListElement.nextElementSibling.innerHTML = "";
});
@@ -143,7 +143,7 @@ export const image = {
confirmDialog(window.siyuan.languages.deleteOpConfirm, `${window.siyuan.languages.delete} ${pathPosix().basename(pathString)}`, () => {
if (target.parentElement.getAttribute("data-tab-type") === "unRefAV") {
const liElement = target.parentElement;
- fetchPost("/api/asset/removeUnusedAttributeView", {
+ fetchPost("/api/av/removeUnusedAttributeView", {
id: liElement.querySelector(".b3-list-item__text").textContent,
}, () => {
if (liElement.parentElement.querySelectorAll("li").length === 1) {