Commit 05d592ad by lixiaomin

修改图片删除

parent 151d128e
......@@ -119,6 +119,7 @@ export default {
const findex = this.fileList.map((f) => f.name).indexOf(file.name);
if (findex > -1) {
this.fileList.splice(findex, 1);
this.$emit("callback", this.listToString(this.fileList));
this.$emit("input", this.listToString(this.fileList));
}
},
......@@ -191,17 +192,15 @@ export default {
}
const size = strs.length;
if (size == 0) {
return "";
}
// if (size == 0) {
// return [];
// }
if (this.arrType) {
return strs;
}
if (size == 1) {
return strs[0];
}
// if (size == 1) {
// return strs[0];
// }
return strs;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment