fix: 编译已发送的消息中含有任务信息时的未定义问题

This commit is contained in:
kuaifan 2022-11-09 09:30:57 +08:00
parent 56867f942f
commit ab11badc84

View File

@ -1715,7 +1715,7 @@ export default {
this.replyActiveUpdate = true
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">&#xFEFF;<span contenteditable="false"><span class="ql-mention-denotation-char">@</span>$3</span>&#xFEFF;</span>')
text = text.replace(/<span class="mention (.*?)" data-id="(\d+)">([@#])(.*?)<\/span>/g, '<span class="mention" data-denotation-char="$3" data-id="$2" data-value="$4">&#xFEFF;<span contenteditable="false"><span class="ql-mention-denotation-char">$3</span>$4</span>&#xFEFF;</span>')
}
this.msgText = $A.formatMsgBasic(text)
}