From 64fa3a7e478956835ef25e3e7c3146207b47516b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 15 Jan 2023 20:05:25 +0800 Subject: [PATCH] =?UTF-8?q?mp=EF=BC=9A=E4=BF=AE=E5=A4=8D=20wx-reply=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=9A=84=20tab=20=E5=88=87=E6=8D=A2=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/views/mp/components/wx-reply/main.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/yudao-ui-admin/src/views/mp/components/wx-reply/main.vue b/yudao-ui-admin/src/views/mp/components/wx-reply/main.vue index 5940da391..452b42d13 100644 --- a/yudao-ui-admin/src/views/mp/components/wx-reply/main.vue +++ b/yudao-ui-admin/src/views/mp/components/wx-reply/main.vue @@ -346,8 +346,11 @@ export default { // 如果获取不到,需要把 objData 复原 // 必须使用 $set 赋值,不然 input 无法输入内容 this.$set(this.objData, 'content', ''); + this.$delete(this.objData, 'mediaId'); + this.$delete(this.objData, 'url'); this.$set(this.objData, 'title', ''); this.$set(this.objData, 'description', ''); + }, /** * 选择素材,将设置设置到 objData 变量 @@ -429,15 +432,15 @@ export default { this.$delete(this.objData, 'articles'); } else if(this.objData.type === 'image') { this.objData.mediaId = null - this.objData.url = null + this.$delete(this.objData, 'url'); this.objData.name = null } else if(this.objData.type === 'voice') { this.objData.mediaId = null - this.objData.url = null + this.$delete(this.objData, 'url'); this.objData.name = null } else if(this.objData.type === 'video') { this.objData.mediaId = null - this.objData.url = null + this.$delete(this.objData, 'url'); this.objData.name = null this.objData.title = null this.objData.description = null