sync: soul-admin 页面 | 原因: 前端页面修改

This commit is contained in:
卡若
2026-03-08 10:26:22 +08:00
parent 117d489cc5
commit 701e861f15

View File

@@ -63,7 +63,7 @@ export function MatchPoolTab() {
try {
const data = await get<{ success?: boolean; data?: MatchConfig; config?: MatchConfig }>('/api/db/config/full?key=match_config')
const c = (data as { data?: MatchConfig })?.data ?? (data as { config?: MatchConfig })?.config
if (c) setConfig({ ...DEFAULT_CONFIG, ...c })
if (c) setConfig({ ...DEFAULT_CONFIG, ...c, poolSettings: c.poolSettings ?? DEFAULT_POOL })
} catch (e) { console.error('加载匹配配置失败:', e) }
finally { setIsLoading(false) }
}