Ether Admin - 管理后台
Go to file
chiguyong c2429614fe fix: 修正登录 API 泛型类型声明
问题:
- auth.ts 的 login() 函数使用了错误的泛型参数 <LoginResponse>
- 导致 TypeScript 类型推断错误:res.data.data 不存在于 LoginResponse

修复:
- 将 request.post<LoginResponse> 改为 request.post<ApiResponse<LoginResponse>>
- 添加显式返回类型 Promise<AxiosResponse<ApiResponse<LoginResponse>>>

影响范围:仅登录功能
验证:vue-tsc --noEmit 通过 (0 errors)

Co-authored-by: Trae AI
2026-04-13 08:40:24 +08:00
node_modules refactor: 统一API路径,修复前后端路径不匹配 2026-04-06 15:41:29 +08:00
src fix: 修正登录 API 泛型类型声明 2026-04-13 08:40:24 +08:00
tests refactor: 统一API路径,修复前后端路径不匹配 2026-04-06 15:41:29 +08:00
.gitignore chore: 更新.gitignore添加test-server.cjs 2026-03-22 01:36:48 +08:00
SPACE_TREE_TEST_REPORT.md refactor: 统一API路径,修复前后端路径不匹配 2026-04-06 15:41:29 +08:00
dev-server.mjs fix: 修复登录功能 - API响应嵌套结构、路由跳转、CORS配置 2026-03-22 01:25:11 +08:00
e2e-test.js refactor: 统一API路径,修复前后端路径不匹配 2026-04-06 15:41:29 +08:00
index.html init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
package-lock.json refactor: 统一API路径,修复前后端路径不匹配 2026-04-06 15:41:29 +08:00
package.json refactor: 统一API路径,修复前后端路径不匹配 2026-04-06 15:41:29 +08:00
playwright.config.ts refactor: 统一API路径,修复前后端路径不匹配 2026-04-06 15:41:29 +08:00
test-project-e2e.cjs feat: add equipment management frontend pages 2026-03-24 00:03:36 +08:00
tsconfig.json init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
tsconfig.node.json init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
vite.config.ts fix: 修复登录功能 - API响应嵌套结构、路由跳转、CORS配置 2026-03-22 01:25:11 +08:00