From af2afeda56c9da43b0ce215678fb3f611a3a05da Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 2 Mar 2026 23:15:30 -0800 Subject: [PATCH] =?UTF-8?q?fix(admin-web):=20=E4=BF=AE=E5=A4=8D=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E7=85=A7=E7=89=87=E9=A1=B5=E9=9D=A2=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E8=A7=A3=E5=8C=85=E5=A4=9A=E4=BD=99=E4=B8=80=E5=B1=82=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=95=B0=E6=8D=AE=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit apiClient 响应拦截器已返回 response.data,页面不应再取 .data Co-Authored-By: Claude Opus 4.6 --- .../src/app/(dashboard)/authorization-photos/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/admin-web/src/app/(dashboard)/authorization-photos/page.tsx b/frontend/admin-web/src/app/(dashboard)/authorization-photos/page.tsx index d8cb83b7..287f22ae 100644 --- a/frontend/admin-web/src/app/(dashboard)/authorization-photos/page.tsx +++ b/frontend/admin-web/src/app/(dashboard)/authorization-photos/page.tsx @@ -60,7 +60,8 @@ export default function AuthorizationPhotosPage() { const response = await apiClient.get(API_ENDPOINTS.AUTHORIZATION.SELF_APPLY_PHOTOS, { params, }); - setData((response as any)?.data ?? { items: [], total: 0, page: 1, limit: 20 }); + // apiClient 响应拦截器已经解包 response.data,这里直接用 response + setData((response as any) ?? { items: [], total: 0, page: 1, limit: 20 }); } catch (err) { console.error('获取自助申请照片失败:', err); setError(err instanceof Error ? err.message : '获取数据失败');