mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-16 03:58:12 +00:00
fix: 编辑@消息的问题
This commit is contained in:
parent
1a1c03b355
commit
d23bff5a48
@ -1652,7 +1652,11 @@ export default {
|
||||
this.onReply()
|
||||
if (this.operateItem.type === 'text') {
|
||||
this.replyActiveUpdate = true
|
||||
this.msgText = $A.formatMsgBasic(this.operateItem.msg.text)
|
||||
let {text} = this.operateItem.msg
|
||||
if (text.indexOf("mention") > -1) {
|
||||
text = text.replace(/<span class="mention (.*?)" data-id="(\d+)">@(.*?)<\/span>/g, '<span class="mention" data-denotation-char="@" data-id="$2" data-value="$3"><span contenteditable="false"><span class="ql-mention-denotation-char">@</span>$3</span></span>')
|
||||
}
|
||||
this.msgText = $A.formatMsgBasic(text)
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user