diff --git a/src/pages/Event/view/miniAiIdentify/index.tsx b/src/pages/Event/view/miniAiIdentify/index.tsx index fbc7efc66ec76d7c7c1700aaf6f5689c60955d4e..b4872db7548fc4d7a09baec695580a46beb5afac 100644 --- a/src/pages/Event/view/miniAiIdentify/index.tsx +++ b/src/pages/Event/view/miniAiIdentify/index.tsx @@ -71,18 +71,15 @@ function MiniAiIdentify() { .postPhotoAcquisitionCategory({ img: imgBase64 }) .then((res) => { console.log(777, res); - if (res.code === 200) { //接口成功 - let aidataRes = res.data; - console.log(78, aidataRes); + let aidataRes = res.data;//AI数据 if (aidataRes.code === 200) { //识别成功 - setAiData(aidataRes[0].detectedInfo[0]); - drawCanvas(aidataRes[0].detectedInfo[0]); + setAiData(aidataRes.data[0]?.detectedInfo[0]); + drawCanvas(aidataRes.data[0]?.detectedInfo[0]); } else { //未识别 - console.log("卫视吧"); setVisible(true); } }