NestJS transform 会将缺失的 query 参数转为 NaN, 而 NaN ?? 1 仍然是 NaN。改用 Number(page) || 1 确保默认值生效。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| application | ||
| domain/version-management | ||
| infrastructure | ||
| shared | ||
| types | ||
| app.module.ts | ||
| main.ts | ||
NestJS transform 会将缺失的 query 参数转为 NaN, 而 NaN ?? 1 仍然是 NaN。改用 Number(page) || 1 确保默认值生效。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| application | ||
| domain/version-management | ||
| infrastructure | ||
| shared | ||
| types | ||
| app.module.ts | ||
| main.ts | ||