Skip to content

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

:white_check_mark: Keep image OCR fixture compatible with lint rules https://github.com/siyuan-note/siyuan/issues/19977

Daniele23de8024442
diff --git a/app/src/asset/imageOCR.test.ts b/app/src/asset/imageOCR.test.ts
index 082a6f7de5..879e1c26f9 100644
--- a/app/src/asset/imageOCR.test.ts
+++ b/app/src/asset/imageOCR.test.ts
@@ -23,7 +23,7 @@ const browserCases = async (source: string, actionsSource: string) => {
this.element = document.createElement("div");
this.element.innerHTML = options.content;
document.body.append(this.element);
- dialog = this;
+ dialog = {element: this.element, destroy: () => this.element.remove()};
}
destroy() { this.element.remove(); }
},