fix(frontend/settings): fix json marshal fault, now the settings page could be loaded correctly

This commit is contained in:
2026-09-10 20:12:21 +08:00
parent 93d5ac2707
commit 8797f8eda6
2 changed files with 26 additions and 1 deletions
+3
View File
@@ -16,6 +16,9 @@ export async function loadDebugMode() {
const config = (res && res.data && res.data.config) || {};
const system = config.system || {};
debugMode.value = !!system.debugMode;
if (debugMode.value) {
console.log('Debug mode enabled');
}
} catch {
// Non-fatal: the flag simply keeps its current value.
}