chiguyong
|
2a14167861
|
refactor: 统一API路径,修复前后端路径不匹配
- 更新设备相关API路径为/api/asset/*
- 更新设备健康API路径为/api/asset/equipment-health
- 保持/api/ops/*路径的工单和能耗API
- 更新前端API调用以匹配后端
|
2026-04-06 15:41:29 +08:00 |
chiguyong
|
7b3194219b
|
feat: add equipment health and inspection template frontend pages
|
2026-03-24 01:02:34 +08:00 |
chiguyong
|
5c7728e3db
|
feat: add spare part management frontend pages
|
2026-03-24 00:48:16 +08:00 |
chiguyong
|
5500238be3
|
feat: add energy monitoring frontend pages
|
2026-03-24 00:34:43 +08:00 |
chiguyong
|
913d6400e4
|
feat: add maintenance management frontend pages
|
2026-03-24 00:19:06 +08:00 |
chiguyong
|
7956379f71
|
feat: add equipment management frontend pages
|
2026-03-24 00:03:36 +08:00 |
chiguyong
|
1bcc0facd2
|
fix: 修复登录功能 - API响应嵌套结构、路由跳转、CORS配置
关键修复:
- stores/user.ts: API响应是{code,message,data{}}结构,使用res.data.data获取token
- Login.vue: 使用window.location.href替代router.push进行跳转
- router/index.ts: 修复路由守卫isLoggedIn检查逻辑
- utils/request.ts: baseURL改为绝对路径http://localhost:8080/api
- 新增dev-server.mjs: 带API代理的开发服务器(兼容ClashX)
- package.json: 添加dev:simple脚本
- 新增组件库: TableCard、Pagination、PermissionTree等
- 新增页面: Audit、UserDetail
已知问题修复:
- Vite dev server与ClashX代理冲突问题
Co-authored-by: Trae AI
|
2026-03-22 01:25:11 +08:00 |
chiguyong
|
eb399474f4
|
init: ether-admin frontend project
- Vue3 + TypeScript + Ant Design Vue
- Auth, User, Role, Project management pages
- Pinia state management
- Vue Router with auth guard
|
2026-03-19 09:28:30 +08:00 |