mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
perf: 修改消息换行优化
This commit is contained in:
parent
52dda88d40
commit
aa07c78fc8
@ -2827,6 +2827,7 @@ export default {
|
|||||||
text = text.replace(/<img[^>]*>/gi, match => {
|
text = text.replace(/<img[^>]*>/gi, match => {
|
||||||
return match.replace(/(width|height)="\d+"\s*/ig, "");
|
return match.replace(/(width|height)="\d+"\s*/ig, "");
|
||||||
})
|
})
|
||||||
|
text = text.replace(/<p><\/p>/g, '<p><br/></p>')
|
||||||
this.msgText = $A.formatMsgBasic(text)
|
this.msgText = $A.formatMsgBasic(text)
|
||||||
}
|
}
|
||||||
this.$nextTick(_ => this.$refs.input.setPasteMode(true))
|
this.$nextTick(_ => this.$refs.input.setPasteMode(true))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user