()
| 612 | el.textContent = text; |
| 613 | } |
| 614 | async function loadConfig(){ |
| 615 | const data = await api('/api/config'); |
| 616 | S.admin.config = normalizeAdminConfig(data.config); |
| 617 | S.admin.connected = true; |
| 618 | setAdminStatus('已连接管理 API,配置可编辑。', 'ok'); |
| 619 | renderConfigList(); |
| 620 | renderConfigEditor(); |
| 621 | } |
| 622 | |
| 623 | const CONFIG_TYPES = { |
| 624 | servers: { |
no test coverage detected