refactor(frontend): 重构数据解析逻辑

- 新增 StopAndParseCapture 函数,整合停止抓包和解析数据流程
-重构 ReadRawJsonFile 函数,返回解析后的 ParsedResult 对象
- 优化数据解析流程,提高代码可读性和性能
- 调整前端 CapturePage组件,使用新的解析接口
This commit is contained in:
hxt
2025-07-02 22:42:43 +08:00
parent 3af8fd6e5e
commit 7865b0da7f
9 changed files with 135 additions and 133 deletions

View File

@@ -30,6 +30,10 @@ export function StartCapture(arg1) {
return window['go']['service']['App']['StartCapture'](arg1);
}
export function StopAndParseCapture() {
return window['go']['service']['App']['StopAndParseCapture']();
}
export function StopCapture() {
return window['go']['service']['App']['StopCapture']();
}