Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/10168

Vanessad04fc77a984f
diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts
index 3286fa26b3..fda90999e7 100644
--- a/app/src/editor/util.ts
+++ b/app/src/editor/util.ts
@@ -82,6 +82,10 @@ export const openFile = async (options: IOpenFileOptions) => {
if (typeof options.removeCurrentTab === "undefined") {
options.removeCurrentTab = true;
}
+ // https://github.com/siyuan-note/siyuan/issues/10168
+ document.querySelectorAll(".av__panel, .av__mask").forEach(item => {
+ item.remove();
+ });
const allModels = getAllModels();
// 文档已打开
if (options.assetPath) {