feat: update API response structure to nest payloads under a single "data" key

This commit is contained in:
2026-09-09 16:15:33 +08:00
parent c0eada9bcc
commit d96b90b5bf
8 changed files with 36 additions and 29 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ const defaultOpts = () => ({
async function load() {
try {
const res = await settingsApi.get('bot_user_config');
const cfg = (res && res.config) || {};
const cfg = (res && res.data && res.data.config) || {};
const flat = [];
for (const c of CHANNELS) {
const chData = cfg[c.key] || {};