Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2022-11-23 22:05:43 +08:00
commit ebd09fee77
6 changed files with 45 additions and 12 deletions

View file

@ -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",