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

Vanessa8d699f97659a
diff --git a/app/src/config/image.ts b/app/src/config/image.ts
index be23ef610d..c9653befe7 100644
--- a/app/src/config/image.ts
+++ b/app/src/config/image.ts
@@ -202,7 +202,19 @@ export const image = {
} else {
liElement.remove();
}
- avListElement.nextElementSibling.innerHTML = "";
+ onGet({
+ data: {
+ data: {
+ content: "",
+ id: Lute.NewNodeID(),
+ rootID: Lute.NewNodeID(),
+ },
+ msg: "",
+ code: 0
+ },
+ protyle: editor.protyle,
+ action: [Constants.CB_GET_HISTORY, Constants.CB_GET_HTML],
+ });
});
} else {
fetchPost("/api/asset/removeUnusedAsset", {