@zgfe/modules-settings 1.2.7 → 1.2.8-node.1

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.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -15,7 +15,6 @@ import SetingModal from './modal';
15
15
  var AppMember = function AppMember() {
16
16
  var _useContext = useContext(BizGlobalDataContext),
17
17
  currentApp = _useContext.currentApp,
18
- currentUser = _useContext.currentUser,
19
18
  getMenuRouterByName = _useContext.getMenuRouterByName;
20
19
  var _useState = useState([]),
21
20
  _useState2 = _slicedToArray(_useState, 2),
File without changes
@@ -55,6 +55,8 @@ var PersonalInfo = function PersonalInfo(_ref) {
55
55
  emailNote: emailNote
56
56
  });
57
57
  form.resetFields();
58
+ currentUser.username = username;
59
+ currentUser.emailNote = emailNote;
58
60
  // 主应用更新currentUser,同公司设置-更新应用名称回调
59
61
  settingsCallback('settingChangeCompanyNameCallback');
60
62
  } else {
@@ -72,7 +72,7 @@ var Notice = function Notice() {
72
72
  config: JSON.stringify(values)
73
73
  }
74
74
  }).then(function (res) {
75
- if ((res === null || res === void 0 ? void 0 : res.status) === 200) {
75
+ if (res) {
76
76
  notification.success({
77
77
  message: '配置成功'
78
78
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "1.2.7",
3
+ "version": "1.2.8-node.1",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -51,7 +51,7 @@
51
51
  "umi-request": "^1.4.0",
52
52
  "yorkie": "^2.0.0"
53
53
  },
54
- "gitHead": "10b889a6fb5233852df99aedeb7601242163a1e7",
54
+ "gitHead": "5f1861c19a3aa6e6b49a4ff284089a8f0b44c81a",
55
55
  "gitHooks": {
56
56
  "pre-commit": "lint-staged"
57
57
  }