mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
🐛 导出 word 定位
This commit is contained in:
parent
8400173cba
commit
e40d334c7a
@ -36,7 +36,7 @@ export const replaceFileName = (name: string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const replaceLocalPath = (name: string) => {
|
export const replaceLocalPath = (name: string) => {
|
||||||
return name.replace(/\\\\|\/|:|\*|\?|\\|'|<|>|\|/g, "");
|
return name.replace(/\\\\|\/|"|:|\*|\?|\\|'|<|>|\|/g, "");
|
||||||
};
|
};
|
||||||
|
|
||||||
export const rename = (options: {
|
export const rename = (options: {
|
||||||
|
@ -505,7 +505,7 @@ const getExportPath = (option: { type: string, id: string }, removeAssets?: bool
|
|||||||
hideMessage(msgId);
|
hideMessage(msgId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
afterExport(savePath, msgId);
|
afterExport(path.join(savePath, replaceLocalPath(response.data.rootTitle)) + ".docx", msgId);
|
||||||
} else {
|
} else {
|
||||||
onExport(exportResponse, savePath, option.type, removeAssets, msgId);
|
onExport(exportResponse, savePath, option.type, removeAssets, msgId);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user