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

Vanessa01dff7eb5d01
diff --git a/app/src/menus/commonMenuItem.ts b/app/src/menus/commonMenuItem.ts
index 9ac8a8ef6e..b0beaa4bd6 100644
--- a/app/src/menus/commonMenuItem.ts
+++ b/app/src/menus/commonMenuItem.ts
@@ -526,7 +526,7 @@ export const exportMd = (id: string) => {
dialog.bindInput(inputElement, () => {
(btnsElement[1] as HTMLButtonElement).click();
});
- let name = replaceFileName(result.data);
+ let name = replaceFileName(result.data);
const maxNameLen = 32;
if (name.length > maxNameLen) {
name = name.substring(0, maxNameLen);
@@ -630,6 +630,17 @@ export const exportMd = (id: string) => {
click: () => {
saveExport({type: "word", id});
}
+ }, {
+ label: window.siyuan.languages.more,
+ icon: "iconMore",
+ type: "submenu",
+ submenu: [{
+ label: "Word .docx",
+ icon: "iconExact",
+ click: () => {
+ saveExport({type: "word", id});
+ }
+ }]
}
/// #endif
]