From ebd946b3331d7d58888255c8be1edb4f8ecc6229 Mon Sep 17 00:00:00 2001 From: gongjiale <942894820@qq.com> Date: Wed, 28 Dec 2022 16:01:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=AE=E5=AE=A4bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/myAgent/ConferenceRoom.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/back/src/views/modules/myAgent/ConferenceRoom.vue b/back/src/views/modules/myAgent/ConferenceRoom.vue index 04ef1a59..f730d2a5 100644 --- a/back/src/views/modules/myAgent/ConferenceRoom.vue +++ b/back/src/views/modules/myAgent/ConferenceRoom.vue @@ -318,6 +318,9 @@ export default { onRemove (file, fileList) { this.$nextTick(() => { if (fileList.length == 0) { + this.ruleForm.pic =null + this.fileList = [] + this.picImg ='' this.checkImgSuccess = false // 检查图片是否加载成功 // this.$refs.ruleForm.validate() //删除图片,重新触发校验 } @@ -358,7 +361,7 @@ export default { this.$http.get(`/meeting/${row.id}`).then(({ data: res }) => { this.dialogFormVisible = true this.ruleForm = res.data - if (res.data.pic != null) { + if (res.data.pic != null && res.data.pic != '') { // let imgUrl = { name: res.data.name, url: res.data.pic } // this.fileList.push(imgUrl) this.picImg = res.data.pic