feat: 添加离屏文档创建和下载功能,优化录制逻辑

This commit is contained in:
雨霖铃
2026-01-29 19:35:55 +08:00
parent ed5e90f0fc
commit 0ff33cbeb3
8 changed files with 87 additions and 33 deletions
+1 -4
View File
@@ -1,6 +1,3 @@
import React from 'react';
// import {sendRecordCommand} from '../services/bridge'
// import {storage} from "../services/storage";
import { useRecorder } from '../hooks/useRecorder';
import { downloadHtml } from '../utils/recordUtils';
@@ -32,7 +29,7 @@ const RecordeReplayPage = () => {
// setIsRecording(false);
// await storage.remove('isRecording');
stopRecord();
downloadHtml(getEvents());
// downloadHtml(getEvents());
// console.log('events', getEvents());
} catch (e) {
console.error('Error stopping recording:', e);