xiongzhu 4 years ago
parent
commit
09a8e0e04d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      o2web/source/x_component_process_Xform/Documenteditor.js

+ 1 - 0
o2web/source/x_component_process_Xform/Documenteditor.js

@@ -3034,6 +3034,7 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor =  new Cla
             var fileName = docNmae || this.json.toWordFilename || "$doc";
             var n = fileName.lastIndexOf(".");
             if (n==-1) fileName = fileName+".pdf";
+            fileName = fileName.replace(/\.doc$/,'.pdf');
 
             var body = {
                 "fileName": fileName,