mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-15 11:38:06 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
ebd09fee77
6 changed files with 45 additions and 12 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