@kmkf-fe-packages/services-components 1.0.3-alpha.0 → 1.0.3-alpha.2
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/dist/esm/service/api.js +9 -3
- package/package.json +2 -2
package/dist/esm/service/api.js
CHANGED
|
@@ -258,14 +258,20 @@ export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
|
|
|
258
258
|
};
|
|
259
259
|
export var queryLabel = function queryLabel() {
|
|
260
260
|
return request({
|
|
261
|
-
url: "
|
|
262
|
-
method: "
|
|
261
|
+
url: "qy/diamond/getConfigInfo",
|
|
262
|
+
method: "get",
|
|
263
263
|
data: {
|
|
264
264
|
key: 'RISK_WARING_LABEL_LIST'
|
|
265
265
|
}
|
|
266
266
|
}).then(function (res) {
|
|
267
267
|
var data = res.data;
|
|
268
268
|
var instance = LabelData.getInstance();
|
|
269
|
-
|
|
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.
|
|
3
|
+
"version": "1.0.3-alpha.2",
|
|
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": "
|
|
40
|
+
"gitHead": "27c96907983416b34534f01c8f05586480c91e64",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|