perf: 修改消息换行优化

This commit is contained in:
Pang 2024-03-07 22:53:35 +08:00
parent 52dda88d40
commit aa07c78fc8

View File

@ -2827,6 +2827,7 @@ export default {
text = text.replace(/<img[^>]*>/gi, match => {
return match.replace(/(width|height)="\d+"\s*/ig, "");
})
text = text.replace(/<p><\/p>/g, '<p><br/></p>')
this.msgText = $A.formatMsgBasic(text)
}
this.$nextTick(_ => this.$refs.input.setPasteMode(true))