Explorar el Código

更改上传图片bug

Limengbo hace 6 años
padre
commit
c3307912e3
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      pages/input_content/input_content.js

+ 2 - 2
pages/input_content/input_content.js

@@ -49,9 +49,9 @@ Page({
           mask: true,  
           duration: 1000 
         })  
-
+        that.data.tempFilePath.push(tempFilePaths);
         that.setData({
-          tempFilePath: tempFilePaths
+          tempFilePath:  that.data.tempFilePath
         })
         var uploadImgCount = 0;  
         for (var i = 0, h = tempFilePaths.length; i < h; i++) {