فهرست منبع

更改上传图片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++) {