Commit 05d592ad by lixiaomin

修改图片删除

parent 151d128e
...@@ -119,6 +119,7 @@ export default { ...@@ -119,6 +119,7 @@ export default {
const findex = this.fileList.map((f) => f.name).indexOf(file.name); const findex = this.fileList.map((f) => f.name).indexOf(file.name);
if (findex > -1) { if (findex > -1) {
this.fileList.splice(findex, 1); this.fileList.splice(findex, 1);
this.$emit("callback", this.listToString(this.fileList));
this.$emit("input", this.listToString(this.fileList)); this.$emit("input", this.listToString(this.fileList));
} }
}, },
...@@ -191,18 +192,16 @@ export default { ...@@ -191,18 +192,16 @@ export default {
} }
const size = strs.length; const size = strs.length;
if (size == 0) { // if (size == 0) {
return ""; // return [];
} // }
if (this.arrType) { if (this.arrType) {
return strs; return strs;
} }
if (size == 1) { // if (size == 1) {
return strs[0]; // return strs[0];
} // }
return strs; return strs;
}, },
getDisable(){ getDisable(){
......
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