perf:httpUtils增加返回recordsTotal
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiesheng/npm-tool",
|
"name": "@tiesheng/npm-tool",
|
||||||
"version": "1.0.6",
|
"version": "1.0.7",
|
||||||
"description": "npm tool package",
|
"description": "npm tool package",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ async function req(url, options) {
|
|||||||
data = crypto.decrypt(data);
|
data = crypto.decrypt(data);
|
||||||
data = Common.parseJSON(data, data);
|
data = Common.parseJSON(data, data);
|
||||||
}
|
}
|
||||||
resolve(data)
|
resolve({data,recordsTotal: res.recordsTotal})
|
||||||
} else {
|
} else {
|
||||||
GlobalConfig.getConfig().onHttpError(res);
|
GlobalConfig.getConfig().onHttpError(res);
|
||||||
reject(res)
|
reject(res)
|
||||||
|
|||||||
Reference in New Issue
Block a user