Browse Source

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

Liang Ding 3 years ago
parent
commit
1a47d9eeb7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/protyle/export/index.ts

+ 1 - 1
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"],