fix(admin-web): 修复申请照片页面响应解包多余一层导致数据为空

apiClient 响应拦截器已返回 response.data,页面不应再取 .data

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-02 23:15:30 -08:00
parent a801a46e76
commit af2afeda56
1 changed files with 2 additions and 1 deletions

View File

@ -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 : '获取数据失败');