|
@@ -53,12 +53,12 @@ export default {
|
|
|
// 图片数量限制
|
|
|
limit: {
|
|
|
type: Number,
|
|
|
- default: 5,
|
|
|
+ default: 1,
|
|
|
},
|
|
|
// 大小限制(MB)
|
|
|
fileSize: {
|
|
|
type: Number,
|
|
|
- default: 5,
|
|
|
+ default: 10,
|
|
|
},
|
|
|
// 文件类型, 例如['png', 'jpg', 'jpeg']
|
|
|
fileType: {
|
|
@@ -125,20 +125,20 @@ export default {
|
|
|
const findex = this.fileList.map(f => f.name).indexOf(file.name);
|
|
|
if(findex > -1) {
|
|
|
this.fileList.splice(findex, 1);
|
|
|
- this.$emit("input", this.listToString(this.fileList));
|
|
|
+ this.$emit("input", this.fileList);
|
|
|
// this.ImageUpload.setUrl("")
|
|
|
}
|
|
|
},
|
|
|
// 上传成功回调
|
|
|
handleUploadSuccess(res) {
|
|
|
- this.uploadList.push({ name: res.data.url, url: res.data.url });
|
|
|
+ this.uploadList.push({ name: res.data.url, url: res.data.webUrl });
|
|
|
if (this.uploadList.length === this.number) {
|
|
|
this.fileList = this.fileList.concat(this.uploadList);
|
|
|
this.uploadList = [];
|
|
|
this.number = 0;
|
|
|
console.log("213",this.fileList)
|
|
|
// this.ImageUpload.setUrl(res.data.url)
|
|
|
- this.$emit("input", this.listToString(this.fileList));
|
|
|
+ this.$emit("input", this.fileList);
|
|
|
this.$modal.closeLoading();
|
|
|
}
|
|
|
},
|