소스 검색

更改上传图片bug

Limengbo 6 년 전
부모
커밋
c3307912e3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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++) {