v1.4.3 — 修复蓝图无数据: apiGetStats 取错字段
This commit is contained in:
@@ -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); });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user