From e32ada5186e1090927301706c2d65144926d26c3 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 28 二月 2024 08:39:38 +0800
Subject: [PATCH] Merge branch 'master' of http://47.97.1.152:5880/r/zy-asrs-master
---
zy-asrs-flow/src/pages/account/setting/index.jsx | 24 +++++++++++++++---------
1 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/zy-asrs-flow/src/pages/account/setting/index.jsx b/zy-asrs-flow/src/pages/account/setting/index.jsx
index 7f3a7cc..85141e9 100644
--- a/zy-asrs-flow/src/pages/account/setting/index.jsx
+++ b/zy-asrs-flow/src/pages/account/setting/index.jsx
@@ -5,19 +5,24 @@
import SecurityView from './components/security';
import useStyles from './style.style';
+const menuMap = {
+ base: '鍩烘湰璁剧疆',
+ security: '瀹夊叏璁剧疆',
+};
+
+const getMenu = () => {
+ return Object.keys(menuMap).map((item) => ({ key: item, label: menuMap[item] }));
+};
+
const Settings = () => {
const { styles } = useStyles();
- const menuMap = {
- base: '鍩烘湰璁剧疆',
- security: '瀹夊叏璁剧疆',
- binding: '璐﹀彿缁戝畾',
- notification: '鏂版秷鎭�氱煡',
- };
const [initConfig, setInitConfig] = useState({
mode: 'inline',
selectKey: 'base',
});
+
const dom = useRef();
+
const resize = () => {
requestAnimationFrame(() => {
if (!dom.current) {
@@ -37,6 +42,7 @@
});
});
};
+
useLayoutEffect(() => {
if (dom.current) {
window.addEventListener('resize', resize);
@@ -46,9 +52,7 @@
window.removeEventListener('resize', resize);
};
}, [dom.current]);
- const getMenu = () => {
- return Object.keys(menuMap).map((item) => ({ key: item, label: menuMap[item] }));
- };
+
const renderChildren = () => {
const { selectKey } = initConfig;
switch (selectKey) {
@@ -60,6 +64,7 @@
return null;
}
};
+
return (
<GridContent>
<div
@@ -91,4 +96,5 @@
</GridContent>
);
};
+
export default Settings;
--
Gitblit v1.9.1