mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 12:50:48 +00:00
fix: 编译已发送的消息中含有任务信息时的未定义问题
This commit is contained in:
parent
56867f942f
commit
ab11badc84
@ -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"><span contenteditable="false"><span class="ql-mention-denotation-char">@</span>$3</span></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"><span contenteditable="false"><span class="ql-mention-denotation-char">$3</span>$4</span></span>')
|
||||
}
|
||||
this.msgText = $A.formatMsgBasic(text)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user