@zgfe/modules-dm 1.0.14-alpha.0 → 1.0.14-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.
@@ -346,10 +346,12 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
346
346
  method: 'post',
347
347
  data: data
348
348
  }).then(function (res) {
349
- if (res) {
349
+ if (res.code == 10001) {
350
350
  message.success('上传成功');
351
351
  setBatchId(res.batch_id);
352
352
  setAttrExcelData(res.values);
353
+ } else {
354
+ message.error(res.msg);
353
355
  }
354
356
  }).catch(function (err) {});
355
357
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.14-alpha.0",
3
+ "version": "1.0.14-alpha.2",
4
4
  "license": "ISC",
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -49,7 +49,7 @@
49
49
  "umi-request": "^1.4.0",
50
50
  "yorkie": "^2.0.0"
51
51
  },
52
- "gitHead": "f9a8386f44778764352e3bd46cb3e83adc713dcb",
52
+ "gitHead": "67de094e1f0ab0cadcfe99ec103886fcdb6745db",
53
53
  "gitHooks": {
54
54
  "pre-commit": "lint-staged"
55
55
  }