This commit is contained in:
Vanessa 2022-07-20 09:08:49 +08:00
parent b53c0e4758
commit 85aaede426
4 changed files with 8 additions and 11 deletions

View file

@ -122,19 +122,16 @@ const getExportPath = (option: { type: string, id: string }, pdfOption?: PrintTo
return;
}
let exportType = "HTML (SiYuan)"
let extension = "html"
let exportType = "HTML (SiYuan)";
switch (option.type) {
case "htmlmd":
exportType = "HTML (Markdown)";
break;
case "word":
exportType = "Word .docx";
extension = "docx";
break;
case "pdf":
exportType = "PDF";
extension = "pdf";
break;
}