Commit Graph

2 Commits

Author SHA1 Message Date
365c461ea4 fix: 修复小程序编译兼容性问题
- 修改 tsconfig.json target 为 ES2019
- 修改 vite.config.ts 添加 build.target 和 esbuild.target 为 es2015
- 重写 currency.ts getCurrencySymbol 函数,避免使用可选链和空值合并操作符
2026-03-24 06:06:24 +00:00
fa2fa98985 feat: TypeScript 迁移完成
- 新增 tsconfig.json 配置
- 新增 types/ 目录(7个类型定义文件,与后端 DTO 对齐)
- 迁移 vite.config.js → vite.config.ts
- 迁移 main.js → main.ts
- 迁移 utils/api.js → utils/api.ts(泛型化请求封装)
- 迁移 utils/currency.js → utils/currency.ts
- 迁移 6 个 Vue 页面组件(添加 lang="ts" 和类型注解)
- 新增 TYPESCRIPT_MIGRATION.md 迁移计划文档
- 更新 todo.md 进度

收益:完整类型提示、编译时错误检查、重构安全性提升
2026-03-24 05:53:29 +00:00