feat(frontend): 添加捕获存储钩子
- 新增 useCapture 使用 Zustand 库创建状态管理
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user