v1.4.3 — 修复蓝图无数据: apiGetStats 取错字段

This commit is contained in:
mac
2026-06-04 16:01:09 +08:00
parent 03745e19c3
commit b822ab4269

View File

@@ -86,7 +86,7 @@
function apiGetStats(cb) {
fetch('/api/stats')
.then(function(r){ return r.json(); })
.then(function(res){ if (res.ok) cb(null, res.data); else cb(res.error); })
.then(function(res){ if (res.ok) cb(null, res); else cb(res.error); })
.catch(function(e){ cb(e.message); });
}