Commit 319ad83b authored by fanxuehui's avatar fanxuehui

feat(todos):

parent f12863b0
......@@ -3,6 +3,9 @@ let events = [];
onmessage = ({ data: { type, event } }) => {
switch (type) {
case "record":
// todo : 根据事件类型优先级触发上传策略
// todo : 全量快照上传cdn
// todo : 数据压缩
events.push(event);
console.log(events);
if (events.length > 100) {
......@@ -11,6 +14,9 @@ onmessage = ({ data: { type, event } }) => {
console.log("local");
}
break;
case "reset":
// todo : 重新生成recordKey
break;
default:
console.log("unknow action");
}
......
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