文件上传存储到阿里云新增自定义文件名

This commit is contained in:
不做码农
2022-01-14 20:27:23 +08:00
parent b8e4cd2421
commit 4fefb4282d
7 changed files with 26 additions and 17 deletions

View File

@@ -162,7 +162,7 @@ export default {
}
this.msgSuccess("上传成功");
this.fileList.push({ name: res.data.fileName, url: res.data.url, path: res.data.path });
this.$emit("input", this.column, this.listToString(this.fileList));
this.$emit("input", this.column, this.listToString(this.fileList), res.data);
},
// 上传进度
uploadProcess(event, file, fileList) {