From d04fc77a984f2b91264c430528f845b493ad10cf Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 13 Jan 2024 22:46:51 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10168 --- app/src/editor/util.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts index 3286fa26b..fda90999e 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) {