bug入库新增上传了附件,在编辑时,再次上传了一个附件,提交后,查看详情页面,附件为空

This commit is contained in:
fanlin
2021-07-28 17:44:35 +08:00
parent c532794d64
commit 209e772c09
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ export default {
uploadSuccess(res, file, fileList) {
if (res.ok) {
// this.value += res.data.id + ','
this.$emit('input', this.value + res.data.id + ',')
this.$emit('input', this.value ? this.value + ',' : this.value+ res.data.id + ',')
this.$emit('success')
this.$message({
message: '文件上传成功',