提交 d29c2028 编写于 作者: DCloud_JSON's avatar DCloud_JSON

Update rich-text.vue

上级 b56d890d
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
}, },
computed: { computed: {
isSingeImg() { isSingeImg() {
return this.msg.body.filter(item => item.name != 'img' && item.text).length === 0 return this.msg.body.filter(item => item.name != 'img' && item.text || item?.attrs?.class === "nickname" ).length === 0
}, },
imgList() { imgList() {
return this.msg.body.filter(item => item.name == 'img').map(item => item.attrs.src) return this.msg.body.filter(item => item.name == 'img').map(item => item.attrs.src)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册