feat(本地化与工具): 为排序功能添加升序/降序翻译并统一 ID 生成

- 为所有支持的语言添加排序功能的 "ascending" 和 "descending" 翻译
- 创建统一的 ID 生成工具函数 generateId,用于生成带前缀的业务 ID
- 重构多个逻辑模块(battleLogic、moonLogic 等)使用新的 ID 生成函数
- 改进 GM 视图的类型安全,添加预设数据验证和类型保护
This commit is contained in:
wenyu
2026-03-18 19:29:08 +08:00
parent 28c3da2582
commit a8ab2b0f1a
16 changed files with 165 additions and 86 deletions

View File

@@ -1275,6 +1275,8 @@ export default {
searchPlaceholder: '搜索NPC名称...',
sort: {
label: '排序',
ascending: '升序',
descending: '降序',
reputation: '好感度',
planets: '星球数量',
difficulty: '难度',