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

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

上级 72eed46b
...@@ -27,7 +27,7 @@ export default class SliceMsgToLastMsg { ...@@ -27,7 +27,7 @@ export default class SliceMsgToLastMsg {
return //console.log('被终止'); return //console.log('被终止');
} }
this.sliceMsgIng = true 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() let msg = msgsArr.reverse().pop()
// console.log('msg', msg); // console.log('msg', msg);
// 更新最后一条消息的内容 // 更新最后一条消息的内容
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册