MSI\liwei 7 years ago
parent
commit
e6b03ba488
1 changed files with 5 additions and 1 deletions
  1. 5 1
      VisualInspection/qzd/js/task/new.js

+ 5 - 1
VisualInspection/qzd/js/task/new.js

@@ -248,7 +248,11 @@ function getRecord() {
             },
             onFileUploaded: function(file, responseObject) {
                 var datas = eval('(' + responseObject.response + ')');
-                file_src += ","+datas.result_data.path;
+                if(file_src != '' && file_src != null){
+                    file_src +=","+ datas.result_data.path ;
+                }else{
+                    file_src += datas.result_data.path ;
+                }
                 var data = {
                     "videos": file_src,
                     "id" : recordId