fix: TypeScript 类型转换修复

This commit is contained in:
aiyimickey 2026-07-02 09:34:36 +08:00
parent 57174fd26a
commit 0d83bcc19f
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export default function ServicesPage() {
} }
const updateCheck = (i: number, f: string, v: string) => { const updateCheck = (i: number, f: string, v: string) => {
const checks = [...((editing?.checks as Check[]) || [])] const checks = [...((editing?.checks as Check[]) || [])]
if (checks[i]) (checks[i] as Record<string, string>)[f] = v if (checks[i]) (checks[i] as unknown as Record<string, string>)[f] = v
update('checks', checks) update('checks', checks)
} }
const removeCheck = (i: number) => { const removeCheck = (i: number) => {