feat: 完成英雄配置编辑器全流程功能开发
本次提交实现了完整的英雄配置管理系统: 1. 新增服务器端英雄数据持久化接口,支持读取和保存英雄配置 2. 重构前端英雄编辑器UI,替换侧边栏为下拉选择器适配移动端 3. 统一调整前端页面样式,压缩间距适配更多内容 4. 修复Tooltip组件显示逻辑,优化技能飘字效果 5. 导入CSV英雄配置数据,补全全职业技能配置 6. 调整多个英雄预制体的尺寸和位置参数 7. 生成完整的英雄配置导出文件hexport.ts
This commit is contained in:
@@ -3,6 +3,8 @@ import axios from 'axios'
|
||||
export const api = {
|
||||
meta: () => axios.get('/api/meta').then((r) => r.data),
|
||||
refresh: () => axios.post('/api/refresh').then((r) => r.data),
|
||||
fetchHeroes: () => axios.get('/api/heroes').then((r) => r.data),
|
||||
saveHeroes: (heroes) => axios.post('/api/heroes', { heroes }).then((r) => r.data),
|
||||
exportHeroes: (heroes) => axios.post('/api/export', { heroes }).then((r) => r.data),
|
||||
fetchExport: () => axios.get('/api/export', { responseType: 'text' }).then((r) => r.data),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user