feat(frontend): 添加捕获存储钩子

- 新增 useCapture 使用 Zustand 库创建状态管理
This commit is contained in:
hu xiaotong
2025-07-02 17:21:59 +08:00
parent 44ee8da1ed
commit 92807c8554
2 changed files with 14 additions and 6 deletions

View File

@@ -79,7 +79,7 @@ function CapturePage() {
const fetchInterfaces = async () => {
setIsCapturing(false);
setCapturedData([]);
setParsedData(null);
// setParsedData(null);
setLoading(false);
setInterfaceLoading(true);
try {
@@ -145,7 +145,7 @@ function CapturePage() {
setLoading(false);
setIsCapturing(false);
setCapturedData([]);
setParsedData(null);
// setParsedData(null);
try {
setLoading(true);
await safeApiCall(