An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 导出 word 定位
Vanessae40d334c7a71
diff --git a/app/src/editor/rename.ts b/app/src/editor/rename.tsindex d2b95e149a..70a6c0df64 100644--- a/app/src/editor/rename.ts+++ b/app/src/editor/rename.ts@@ -36,7 +36,7 @@ export const replaceFileName = (name: string) => {};export const replaceLocalPath = (name: string) => {- return name.replace(/\\\\|\/|:|\*|\?|\\|'|<|>|\|/g, "");+ return name.replace(/\\\\|\/|"|:|\*|\?|\\|'|<|>|\|/g, "");};export const rename = (options: {diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.tsindex 5015f8aeca..f1473befe8 100644--- a/app/src/protyle/export/index.ts+++ b/app/src/protyle/export/index.ts@@ -505,7 +505,7 @@ const getExportPath = (option: { type: string, id: string }, removeAssets?: boolhideMessage(msgId);return;}- afterExport(savePath, msgId);+ afterExport(path.join(savePath, replaceLocalPath(response.data.rootTitle)) + ".docx", msgId);} else {onExport(exportResponse, savePath, option.type, removeAssets, msgId);}