@kmkf-fe-packages/services-components 1.0.3-alpha.1 → 1.0.3-alpha.3

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.
@@ -111,6 +111,6 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
111
111
  this.children = [];
112
112
  this.dataType = "array";
113
113
  this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
114
- this.labelDateInstance = new LabelData();
114
+ this.labelDateInstance = LabelData.getInstance();
115
115
  });
116
116
  export default Label;
@@ -266,6 +266,12 @@ export var queryLabel = function queryLabel() {
266
266
  }).then(function (res) {
267
267
  var data = res.data;
268
268
  var instance = LabelData.getInstance();
269
- instance.labelData = data;
269
+ try {
270
+ var finalData = JSON.parse(data);
271
+ instance.labelData = finalData;
272
+ } catch (e) {
273
+ console.error('转换标签数据数据异常');
274
+ instance.labelData = [];
275
+ }
270
276
  });
271
277
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.0.3-alpha.1",
3
+ "version": "1.0.3-alpha.3",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "3714facd974aedc0ffc02d9af96b9662dd410ab4",
40
+ "gitHead": "c388987860a11c8bceae1431d2785602b6e6d643",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }