From 89ded34f713f2beeeb279dbd24fab5ddd5949822 Mon Sep 17 00:00:00 2001 From: "DESKTOP-D6EHK2V\\chay" <1924913374@qq.com> Date: Mon, 30 Sep 2024 21:20:31 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9AI=E8=AF=86?= =?UTF-8?q?=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Event/view/miniAiIdentify/index.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/pages/Event/view/miniAiIdentify/index.tsx b/src/pages/Event/view/miniAiIdentify/index.tsx index fbc7efc..b4872db 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); } } -- GitLab