|
@@ -92,7 +92,7 @@ export default {
|
|
|
if (typeof item === "string") {
|
|
|
item = { name: item, url: item };
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
item.uid = item.uid || new Date().getTime() + temp++;
|
|
|
return item;
|
|
|
});
|
|
@@ -156,13 +156,13 @@ export default {
|
|
|
this.fileList.push({ name:res.originalFilename, url: res.fileName });
|
|
|
this.juese.push({ name:res.originalFilename, url: res.fileName });
|
|
|
console.log(this.juese,765)
|
|
|
- this.$emit("input", this.listToString(this.juese));
|
|
|
+ this.$emit("input", this.listToString(this.fileList));
|
|
|
},
|
|
|
// 删除文件
|
|
|
handleDelete(index) {
|
|
|
this.fileList.splice(index, 1);
|
|
|
this.juese.splice(index, 1);
|
|
|
- this.$emit("input", this.listToString(this.juese));
|
|
|
+ this.$emit("input", this.listToString(this.fileList));
|
|
|
},
|
|
|
// 获取文件名称
|
|
|
getFileName(name) {
|