From 9cbfade6b5e6b00cbe451d1f12bd4b2301fb1317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Thu, 5 Mar 2026 12:54:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(credit):=20=E4=BF=AE=E6=AD=A3=E5=91=98?= =?UTF-8?q?=E5=B7=A5=E5=88=97=E8=A1=A8=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将查询参数从 isStaff 改为 isAdmin 以正确获取管理员列表 - 保持原有的错误处理和加载状态管理逻辑 --- src/credit/company/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/credit/company/index.tsx b/src/credit/company/index.tsx index f0bbee0..2d9a875 100644 --- a/src/credit/company/index.tsx +++ b/src/credit/company/index.tsx @@ -345,7 +345,7 @@ export default function CreditCompanyPage() { if (staffList.length) return setStaffLoading(true) try { - const res = await listUsers({ isStaff: true } as any) + const res = await listUsers({ isAdmin: true } as any) setStaffList((res || []) as User[]) } catch (e) { console.error('加载员工列表失败:', e)