|
|
@@ -691,18 +691,22 @@ var app = new Vue({
|
|
|
var timestamp = Date.parse(new Date());
|
|
|
e.name = timestamp + ".png";
|
|
|
url = URL.createObjectURL(e);
|
|
|
+ alert(55);
|
|
|
if(_this.cropParams.type && id>=0){
|
|
|
_this.picList[id] = _this.cropParams;
|
|
|
_this.picList[id].url = url;
|
|
|
_this.picList[id].preview = url;
|
|
|
- _this.picList[id].fileData = _this.dataBlobtoFile(e, e.name);
|
|
|
+ alert(56);
|
|
|
}else{
|
|
|
+ // _this.picList[id].fileData = _this.dataBlobtoFile(e, e.name);
|
|
|
+ alert(57);
|
|
|
var data = _this.cropParams;
|
|
|
data.url = url;
|
|
|
data.preview = url;
|
|
|
- data.fileData = _this.dataBlobtoFile(e, e.name);
|
|
|
+ // data.fileData = _this.dataBlobtoFile(e, e.name);
|
|
|
_this.picList.push(data);
|
|
|
}
|
|
|
+ alert(58);
|
|
|
|
|
|
setTimeout(function () {
|
|
|
$.closePopup();
|