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 b88e86f386
commit bc7eb9dfdd
8 changed files with 36 additions and 29 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ function defaults(f) {
async function load() {
try {
const res = await settingsApi.get('global');
const cfg = (res && res.config) || {};
const cfg = (res && res.data && res.data.config) || {};
for (const s of sections) {
const obj = {};
for (const f of s.fields) {