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