jmash-core-mp 0.1.39 → 0.1.41

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/lib/api/dicts.js CHANGED
@@ -103,7 +103,7 @@ export class CustomBizDict {
103
103
  query;
104
104
  constructor(results, query) {
105
105
  this.values.length = 0;
106
- this.values.push(...results.value);
106
+ this.values.push(...(results || []));
107
107
  this.query = query;
108
108
  }
109
109
  // 根据给定键获取业务数据项的值的方法
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core-mp",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
4
4
  "private": false,
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/api/dicts.ts CHANGED
@@ -117,7 +117,7 @@ export class CustomBizDict {
117
117
 
118
118
  constructor(results: any, query: any) {
119
119
  this.values.length = 0;
120
- this.values.push(...results.value);
120
+ this.values.push(...(results || []));
121
121
  this.query = query;
122
122
  }
123
123
  // 根据给定键获取业务数据项的值的方法