update ruoyi-ui/src/components/ImageUpload/index.vue.

修复图片无法预览的bug
This commit is contained in:
Cony 2021-12-17 12:13:10 +00:00 committed by Gitee
parent 8978012f9d
commit 23a59de218
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -124,7 +124,7 @@ export default {
}, },
// //
handleUploadSuccess(res) { handleUploadSuccess(res) {
this.fileList.push({ name: res.fileName, url: res.fileName }); this.fileList.push({ name: res.fileName, url: res.url });
this.$emit("input", this.listToString(this.fileList)); this.$emit("input", this.listToString(this.fileList));
this.loading.close(); this.loading.close();
}, },