提交 acf5e788 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复 在Safari 浏览器下的兼容性

上级 0eb2c7d8
......@@ -27,7 +27,7 @@ export default class SliceMsgToLastMsg {
return //console.log('被终止');
}
this.sliceMsgIng = true
const msgsArr = this.msgs.split(/(?<=\p{Script=Han})|(?=\p{Script=Han})/gu);
const msgsArr = this.msgs.match(/[\p{Script=Han}]|[^\p{Script=Han}]+/gu);
let msg = msgsArr.reverse().pop()
// console.log('msg', msg);
// 更新最后一条消息的内容
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册