feat(admin,player,api): 优胜冠军通用管理与界面精简
管理端新增冠军盘列表/编辑、展开懒加载与 ECharts 修复;各列表页去掉重复标题。玩家端支持多赛事冠军盘、分批加载与语言切换刷新。API 扩展 outright CRUD 与列表性能优化。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -27,7 +27,9 @@ export function useAppLocale() {
|
||||
}
|
||||
|
||||
async function setLocale(code: string) {
|
||||
applyLocale(code);
|
||||
if (!(SUPPORTED_LOCALES as readonly string[]).includes(code)) return;
|
||||
if (locale.value === code) return;
|
||||
|
||||
if (auth.token) {
|
||||
try {
|
||||
await api.post('/player/language', { locale: code });
|
||||
@@ -39,6 +41,7 @@ export function useAppLocale() {
|
||||
/* 离线或 token 过期时仍保留本地语言 */
|
||||
}
|
||||
}
|
||||
applyLocale(code);
|
||||
}
|
||||
|
||||
function initFromUser(userLocale?: string | null) {
|
||||
|
||||
Reference in New Issue
Block a user