fix: 修复handleBatchUpdate函数类型定义不匹配问题

- 更新UseAccountsReturn接口中handleBatchUpdate的类型签名,添加可选的targetIds参数
- 更新BatchOperationsProps接口中onBatchUpdate的类型定义以匹配实际函数签名
- 修复response.data可能为null的TypeScript严格检查错误

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-23 08:57:45 +08:00
parent c9af343f8e
commit 700f252454
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ interface BatchOperationsProps {
selectedCount: number;
selectedAccounts: Account[];
stats: StatsOverview | null;
onBatchUpdate: (payload: Partial<Pick<Account, 'status' | 'ownerId' | 'notes' | 'platform'>>) => Promise<void>;
onBatchUpdate: (payload: Partial<Pick<Account, 'status' | 'ownerId' | 'notes' | 'platform'>>, targetIds?: number[]) => Promise<void>;
onBatchDelete: () => Promise<void>;
}