|
@@ -249,7 +249,8 @@ const handleCommand = async (command: string | number | object, item) => {
|
|
|
if(item.filesId){
|
|
|
const res = await exportCaseInquestInfo(item.filesId);
|
|
|
const href = URL.createObjectURL(res)
|
|
|
- saveAs(href, item.filesTitle+'.docx');
|
|
|
+ var suffix = item.filesUrl && item.filesUrl.match(/.[^.]+$/)[0] || '.docx';//.txt
|
|
|
+ saveAs(href, item.filesTitle+suffix);
|
|
|
return;
|
|
|
}
|
|
|
downloadFile(item.filesUrl, item.filesTitle)
|