wesmiler %!s(int64=6) %!d(string=hai) anos
pai
achega
d00315a7b4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      public/static/weixin/js/photo.js

+ 2 - 2
public/static/weixin/js/photo.js

@@ -633,7 +633,7 @@ var app = new Vue({
                         var timestamp = Date.parse(new Date());
                         e.name = timestamp + ".png";
                         url = URL.createObjectURL(e);
-                        if(id>0){
+                        if(id>=0){
                             _this.picList[id] = _this.cropParams;
                             _this.picList[id].url = url;
                             _this.picList[id].preview = url;
@@ -699,7 +699,7 @@ var app = new Vue({
                             $("#upload").val("");
                             // _this.picList.push(img);
                             // console.log(_this.picList)
-                            _this.picEdit(0, img);
+                            _this.picEdit(-1, img);
                         }
                     }
                 })