@hzab/list-render 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG +4 -0
- package/package.json +1 -1
- package/src/data-model.js +2 -1
package/CHANGELOG
CHANGED
package/package.json
CHANGED
package/src/data-model.js
CHANGED
|
@@ -177,7 +177,8 @@ class DataModel {
|
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
179
|
let _res = response;
|
|
180
|
-
|
|
180
|
+
// 兼容 传入的是 response.data 的情况
|
|
181
|
+
if (_res.data && _res.headers && _res.request && typeof _res.data?.code === "number") {
|
|
181
182
|
_res = _res.data;
|
|
182
183
|
}
|
|
183
184
|
const { code, message, data, msg } = _res;
|