@zgfe/modules-settings 2.0.0-zhongyuan.27 → 2.0.0-zhongyuan.29
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.
|
@@ -16,16 +16,16 @@ import util from '../../utils/util';
|
|
|
16
16
|
import SecurityLog from './securityLog';
|
|
17
17
|
import CreateProcess from '../messageList';
|
|
18
18
|
var PersonalSetting = function PersonalSetting(_ref) {
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
currentKey = _ref$currentKey === void 0 ? '1' : _ref$currentKey;
|
|
19
|
+
var _route$query;
|
|
20
|
+
var settingsCallback = _ref.settingsCallback;
|
|
22
21
|
var _useContext = useContext(BizGlobalDataContext),
|
|
23
22
|
currentUser = _useContext.currentUser,
|
|
24
|
-
isDemo = _useContext.isDemo
|
|
25
|
-
|
|
23
|
+
isDemo = _useContext.isDemo,
|
|
24
|
+
route = _useContext.route;
|
|
25
|
+
var _useState = useState((route === null || route === void 0 ? void 0 : (_route$query = route.query) === null || _route$query === void 0 ? void 0 : _route$query.currentKey) || '1'),
|
|
26
26
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
currentKey = _useState2[0],
|
|
28
|
+
setCurrentKey = _useState2[1];
|
|
29
29
|
var title = /*#__PURE__*/React.createElement("div", {
|
|
30
30
|
className: "tab-header"
|
|
31
31
|
}, /*#__PURE__*/React.createElement(UserOutlined, null), /*#__PURE__*/React.createElement("span", {
|
|
@@ -33,7 +33,7 @@ var PersonalSetting = function PersonalSetting(_ref) {
|
|
|
33
33
|
}, "\u4E2A\u4EBA\u8BBE\u7F6E"));
|
|
34
34
|
useEffect(function () {
|
|
35
35
|
var query = util.getHrefData(window.location.href);
|
|
36
|
-
if (query.password)
|
|
36
|
+
if (query.password) setCurrentKey('2');
|
|
37
37
|
}, []);
|
|
38
38
|
var items = [{
|
|
39
39
|
key: '1',
|
|
@@ -68,7 +68,7 @@ var PersonalSetting = function PersonalSetting(_ref) {
|
|
|
68
68
|
typeName: "personal",
|
|
69
69
|
title: title,
|
|
70
70
|
items: items,
|
|
71
|
-
currentKey:
|
|
71
|
+
currentKey: currentKey
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
74
|
export default PersonalSetting;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "2.0.0-zhongyuan.
|
|
3
|
+
"version": "2.0.0-zhongyuan.29",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "a98a038f5c0579122ed2ba5f4d7d1ed7d9b8f48b",
|
|
71
71
|
"gitHooks": {
|
|
72
72
|
"pre-commit": "lint-staged"
|
|
73
73
|
}
|