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
|
f111f4a8d5
|
fix: auth.ts API路径添加/api前缀
- /auth/login -> /api/auth/login
- /auth/logout -> /api/auth/logout
- /auth/me -> /api/auth/me
- /auth/refresh -> /api/auth/refresh
|
2026-03-23 09:52:13 +08:00 |
chiguyong
|
ea1eabafb0
|
fix: 恢复Users.vue中的res.data.data正确嵌套结构
|
2026-03-22 02:18:16 +08:00 |
chiguyong
|
fa344f9c4e
|
fix: 修复API路径双重/api问题
- request.ts: baseURL从http://localhost:8080/api改为http://localhost:8080
- 避免baseURL和API路径叠加导致/api/api/xxx
|
2026-03-22 01:57:23 +08:00 |
chiguyong
|
29b51eca99
|
fix: 修复用户、角色、权限管理页面的API响应嵌套结构问题
- Users.vue: res.data → res.data.data
- Roles.vue: res.data → res.data.data
- Permissions.vue: res.data → res.data.data
- package.json: 移除vue-tsc类型检查加快构建
|
2026-03-22 01:41:32 +08:00 |
chiguyong
|
890d2ae895
|
chore: 更新.gitignore添加test-server.cjs
|
2026-03-22 01:36:48 +08:00 |
chiguyong
|
7f01db00e4
|
chore: 添加.gitignore排除node_modules和临时文件
|
2026-03-22 01:35:46 +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 |