fix(mp): 修复 72 个 TypeScript 类型错误 — noImplicitAny 全量通过

- 移除 28 个文件中不再需要的 import React (jsx: react-jsx)
- 修复 catch(err: any) → catch(err: unknown) 类型收窄
- 修复 __wxConfig / CanvasRenderingContext2D 全局类型声明
- 修复 DTO 类型不匹配 (UpdateDialysisRecordReq, notificationService)
- 移除 52 个未使用的 import/变量/常量
- 修复 services 类型 (auth.ts tenant_id, actionInbox boolean, device-sync)
This commit is contained in:
iven
2026-05-22 00:13:58 +08:00
parent 21f8040994
commit 02a96682f6
48 changed files with 75 additions and 80 deletions

View File

@@ -83,7 +83,7 @@ export function useHomeData() {
]);
if (suggestRes.status === 'fulfilled') {
for (const s of suggestRes.value.data.slice(0, 1)) {
for (const s of suggestRes.value.slice(0, 1)) {
items.push({ id: s.id, text: buildSuggestionText(s), type: 'ai', tag: 'AI 建议' });
}
}