From 4292d5da6645e18fbd9f855cba449472096e10af Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 14 Jan 2026 01:55:58 -0800 Subject: [PATCH] fix(mining-admin-web): fix TypeScript type for empty mainPools array --- .../src/features/system-accounts/api/system-accounts.api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/mining-admin-web/src/features/system-accounts/api/system-accounts.api.ts b/frontend/mining-admin-web/src/features/system-accounts/api/system-accounts.api.ts index 78fbe03f..7f068fa4 100644 --- a/frontend/mining-admin-web/src/features/system-accounts/api/system-accounts.api.ts +++ b/frontend/mining-admin-web/src/features/system-accounts/api/system-accounts.api.ts @@ -31,7 +31,7 @@ export function categorizeAccounts(accounts: SystemAccount[]) { const regionAccounts = ['PROVINCE', 'CITY']; return { - mainPools: [], // 池账户现在从 poolAccounts API 获取 + mainPools: [] as SystemAccount[], // 池账户现在从 poolAccounts API 获取 systemAccounts: accounts.filter((a) => coreAccounts.includes(a.accountType)), fixedAccounts: accounts.filter((a) => regionAccounts.includes(a.accountType)), otherAccounts: accounts.filter(