Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/11569

Vanessac599bb45dce4
diff --git a/app/src/config/image.ts b/app/src/config/image.ts
index d0e23dae5b..50fc213256 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 = `<li class="b3-list--empty">${window.siyuan.languages.emptyContent}</li>`;
avListElement.nextElementSibling.innerHTML = "";
});
@@ -143,7 +143,7 @@ export const image = {
confirmDialog(window.siyuan.languages.deleteOpConfirm, `${window.siyuan.languages.delete} <b>${pathPosix().basename(pathString)}</b>`, () => {
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) {