From 2bb22b3fd32cbcc53179ca8402ddc5a0dd5981dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Wed, 8 Mar 2023 14:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=B4=A0=E6=9D=90=E5=BA=93=E5=88=97=E8=A1=A8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8A=A5=E9=94=99=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/upload-image-button/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compenents/upload-image-button/index.tsx b/src/compenents/upload-image-button/index.tsx index c7a5582..0237847 100644 --- a/src/compenents/upload-image-button/index.tsx +++ b/src/compenents/upload-image-button/index.tsx @@ -80,8 +80,8 @@ export const UploadImageButton = (props: PropsInterface) => { resource .resourceList(page, size, "", "", "", "IMAGE", defaultCid + "") .then((res: any) => { - setTotal(res.data.total); - setImageList(res.data.data); + setTotal(res.data.resul.total); + setImageList(res.data.result.data); }) .catch((err) => { console.log("错误,", err);