feat: 新增英雄配置批量写入功能,优化buff和英雄预制体
1. 新增服务端/api/apply接口,支持直接覆盖写入heroSet.ts英雄配置区域 2. 前端管理页面新增「写入heroSet.ts」按钮,支持带确认的批量写入 3. 调整多个buff预制体的位置、缩放参数 4. 统一替换多款英雄预制体的关联资源引用与冗余属性
This commit is contained in:
@@ -6,5 +6,6 @@ export const api = {
|
||||
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),
|
||||
applyHeroes: (heroes) => axios.post('/api/apply', { heroes }).then((r) => r.data),
|
||||
fetchExport: () => axios.get('/api/export', { responseType: 'text' }).then((r) => r.data),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user