Commit e56bd510 authored by liwei's avatar liwei

fix: 发送帧消息时先拷贝数据

本地转发前换边会改到同一份状态。
parent 12832d0b
......@@ -53,7 +53,8 @@ export class NetworkHelper {
async stopFrameSync() { }
sendFrame(data: any) {
const event = { data: { frame: { items: [{ data: data }] } } };
const payload = JSON.parse(JSON.stringify(data));
const event = { data: { frame: { items: [{ data: payload }] } } };
setTimeout(() => {
if (this._closed) {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment