mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🐛 文档标题以空格结尾时导出 HTML 报错 Fix https://github.com/siyuan-note/siyuan/issues/6686
This commit is contained in:
parent
fdd9973d24
commit
3cc4ad6bff
2 changed files with 4 additions and 1 deletions
|
|
@ -447,7 +447,8 @@ const getExportPath = (option: { type: string, id: string }, removeAssets?: bool
|
|||
} else if (option.type === "word") {
|
||||
url = "/api/export/exportDocx";
|
||||
}
|
||||
const savePath = result.filePaths[0].endsWith(response.data.rootTitle) ? result.filePaths[0] : path.join(result.filePaths[0], replaceLocalPath(response.data.rootTitle));
|
||||
let savePath = result.filePaths[0].endsWith(response.data.rootTitle) ? result.filePaths[0] : path.join(result.filePaths[0], replaceLocalPath(response.data.rootTitle));
|
||||
savePath = savePath.trim();
|
||||
fetchPost(url, {
|
||||
id: option.id,
|
||||
pdf: option.type === "pdf",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue