diff --git a/pages/chat/chat.nvue b/pages/chat/chat.nvue index 11f7c81173a82632279c3f317b3a4fdd93764d84..18fa15661512170fa82c384b3165c73e5060bb54 100644 --- a/pages/chat/chat.nvue +++ b/pages/chat/chat.nvue @@ -1246,6 +1246,13 @@ let index = this.conversation.msgList.findIndex(i => i.unique_id == msg.unique_id) // 生成新对象,否则不触发更新 msg = Object.assign({}, msg) + + // 检查内容不是包含 个推 两个字,有则 改成 个 + 零宽字符 + 推 + let tmpBody = JSON.stringify(msg.body) + if(tmpBody.includes('个推')){ + msg.body = JSON.parse(tmpBody.replace(/个推/g,'个\u200b推')) + } + uniImCo.sendMsg(msg) .then(async e => { // console.log('uniImCo.sendMsg',{e,msg});