feat(recorder): 实现IndexedDB分块存储录制事件

- 将录制状态中的events数组替换为sessionId,避免内存溢出问题
- 集成IndexedDB工具模块实现事件分块存储功能
- 修改开始录制逻辑以生成会话ID并初始化数据库会话
- 更新停止录制逻辑从数据库流式读取事件并删除会话数据
- 修复content:save-track-events消息类型的拼写错误
- 在RoutePersistence组件中添加路由恢复和保存的成功提示
- 重构popup应用CSS样式文件,移除冗余导航样式代码
This commit is contained in:
雨霖铃
2026-02-21 15:27:30 +08:00
parent 80e510225c
commit c848003214
6 changed files with 350 additions and 973 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ const RoutePersistence = () => {
}
};
restoreRoute();
restoreRoute().then(() => console.info('恢复路由成功'));
}, [location, navigate]);
useEffect(() => {
@@ -36,7 +36,7 @@ const RoutePersistence = () => {
console.log('保存路由', location.pathname);
};
saveRoute();
saveRoute().then(() => console.info('保存路由成功'));
}, [location]);
return null;