|
|
@@ -152,15 +152,14 @@ export default {
|
|
|
handleUploadSuccess(res, file) {
|
|
|
console.log(res,'res')
|
|
|
if (res.code === 200) {
|
|
|
- getFile(res.data.code).then(res=>{
|
|
|
+ let imgUrl = process.env.VUE_APP_BASE_API + res.data.url
|
|
|
+ this.uploadList.push({ name: res.data.name, url: imgUrl});
|
|
|
+ this.uploadedSuccessfully();
|
|
|
|
|
|
// let str = res.data.code;
|
|
|
// let blob = new Blob([str],{type:'image/jpeg'});
|
|
|
// let imgUrl = window.URL.createObjectURL(blob);
|
|
|
// debugger
|
|
|
- this.uploadList.push({ name: res.data.name, url:imgUrl });
|
|
|
- this.uploadedSuccessfully();
|
|
|
- })
|
|
|
} else {
|
|
|
this.number--;
|
|
|
this.$modal.closeLoading();
|
|
|
@@ -188,6 +187,7 @@ export default {
|
|
|
this.fileList = this.fileList.concat(this.uploadList);
|
|
|
this.uploadList = [];
|
|
|
this.number = 0;
|
|
|
+ console.log(this.listToString(this.fileList),'ppppp')
|
|
|
this.$emit("input", this.listToString(this.fileList));
|
|
|
this.$modal.closeLoading();
|
|
|
}
|