From 53a6a6f92624a2b16e82d5ef3b0229afa914f1be Mon Sep 17 00:00:00 2001 From: sunlizhou <296190577@qq.com> Date: Fri, 25 Aug 2023 09:54:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E5=88=97=E8=A1=A8=E5=88=86?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/preview/brand/list/list.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/preview/brand/list/list.tsx b/src/pages/preview/brand/list/list.tsx index 474d4ff..25ca4c8 100644 --- a/src/pages/preview/brand/list/list.tsx +++ b/src/pages/preview/brand/list/list.tsx @@ -16,9 +16,10 @@ const BrandList: FC = () => { const getData = useCallback(async () => { try { - const res = await brandApi.list(1, 10) + const res = await brandApi.list(page, 10) setTotal(res.total) setBrands([ + ...brands, ...res.list ]) } catch (e) {