zmdms-webui 2.8.1 → 2.8.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.
@@ -88,6 +88,8 @@ var userPwdModal = forwardRef(function (props, ref) {
88
88
  case 2:
89
89
  _d.sent();
90
90
  console.log(data);
91
+ myMessage.success("密码修改成功!");
92
+ setVisible(false);
91
93
  return [3 /*break*/, 4];
92
94
  case 3:
93
95
  err_1 = _d.sent();
@@ -86,7 +86,8 @@ var TranslationButton = function (props) {
86
86
  : libraryMap["DEFAULT"] }, translationParams), translationResultType),
87
87
  })
88
88
  .then(function (res) {
89
- if (res.status === 200) {
89
+ var _a;
90
+ if (res.status === 200 && res.data.code === 200) {
90
91
  unstable_batchedUpdates(function () {
91
92
  var _a, _b, _c, _d;
92
93
  setLoading(false);
@@ -96,6 +97,7 @@ var TranslationButton = function (props) {
96
97
  });
97
98
  }
98
99
  else {
100
+ myMessage.error(((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.msg) || "接口调用失败!");
99
101
  setLoading(false);
100
102
  }
101
103
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-webui",
3
- "version": "2.8.1",
3
+ "version": "2.8.3",
4
4
  "private": false,
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",