Skip to content

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

:art: 导出 PDF 和 Word 时支持覆盖已有文件 https://github.com/siyuan-note/siyuan/issues/5309

Liang Ding1a47d9eeb778
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index 6326549a3b..5c804479b5 100644
--- a/app/src/protyle/export/index.ts
+++ b/app/src/protyle/export/index.ts
@@ -142,7 +142,7 @@ const getExportPath = (option: { type: string, id: string }, pdfOption?: PrintTo
title: window.siyuan.languages.export + " " + exportType,
defaultPath: response.data.rootTitle + "." + extension,
filters: [{
- name: "Word",
+ name: exportType,
extensions: [extension]
}],
properties: ["showOverwriteConfirmation"],