mp:修复 wx-reply 组件的 tab 切换存在问题

This commit is contained in:
YunaiV 2023-01-15 20:05:25 +08:00
parent 8600214532
commit 64fa3a7e47

View File

@ -346,8 +346,11 @@ export default {
// objData // objData
// 使 $set input // 使 $set input
this.$set(this.objData, 'content', ''); this.$set(this.objData, 'content', '');
this.$delete(this.objData, 'mediaId');
this.$delete(this.objData, 'url');
this.$set(this.objData, 'title', ''); this.$set(this.objData, 'title', '');
this.$set(this.objData, 'description', ''); this.$set(this.objData, 'description', '');
}, },
/** /**
* 选择素材将设置设置到 objData 变量 * 选择素材将设置设置到 objData 变量
@ -429,15 +432,15 @@ export default {
this.$delete(this.objData, 'articles'); this.$delete(this.objData, 'articles');
} else if(this.objData.type === 'image') { } else if(this.objData.type === 'image') {
this.objData.mediaId = null this.objData.mediaId = null
this.objData.url = null this.$delete(this.objData, 'url');
this.objData.name = null this.objData.name = null
} else if(this.objData.type === 'voice') { } else if(this.objData.type === 'voice') {
this.objData.mediaId = null this.objData.mediaId = null
this.objData.url = null this.$delete(this.objData, 'url');
this.objData.name = null this.objData.name = null
} else if(this.objData.type === 'video') { } else if(this.objData.type === 'video') {
this.objData.mediaId = null this.objData.mediaId = null
this.objData.url = null this.$delete(this.objData, 'url');
this.objData.name = null this.objData.name = null
this.objData.title = null this.objData.title = null
this.objData.description = null this.objData.description = null