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/17827

Daniel7c89428046f6
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts
index d4ba9eb854..dba595b734 100644
--- a/app/src/protyle/util/compatibility.ts
+++ b/app/src/protyle/util/compatibility.ts
@@ -132,7 +132,7 @@ export const saveExportFile = async (uri: string) => {
);
}
const arrayBuffer = await response.arrayBuffer();
- fs.writeFileSync(result.filePath, Buffer.from(arrayBuffer));
+ await fs.promises.writeFile(result.filePath, new Uint8Array(arrayBuffer));
showMessage(window.siyuan.languages.exported);
return;
} catch (e) {