diff --git a/src/components/feedBack/index.vue b/src/components/feedBack/index.vue index 7d13c95b..176e94f4 100644 --- a/src/components/feedBack/index.vue +++ b/src/components/feedBack/index.vue @@ -97,6 +97,7 @@ @@ -209,6 +210,7 @@ export default { }, ], }, + isUpload: false, }; }, computed: { diff --git a/src/components/feedBack/uploadImage.vue b/src/components/feedBack/uploadImage.vue index 5ac479d5..6036f8ea 100644 --- a/src/components/feedBack/uploadImage.vue +++ b/src/components/feedBack/uploadImage.vue @@ -15,13 +15,24 @@ list-type="picture-card" > -
- +
+ item.uid === param.file.uid + ); + if (!res) { + if (index >= 0) { + this.fileList.splice(index, 1); + } + return this.$emit("update:isUpload", false); + } + this.fileList[index].url = this.OSSclientConfig.basePath + res.name; + this.fileList[index].path = res.name; this.$emit("update:path", [...this.path, res.name]); - this.isUpload = false; + this.$emit("update:isUpload", false); return false; }, beforeUpload(file, fileList) { @@ -216,4 +240,8 @@ export default { align-items: center; justify-content: center; } +.el-upload-list--picture-card .el-upload-list__item-thumbnail { + width: auto; + height: auto; +} \ No newline at end of file