diff --git a/web/client/src/sections/control/containers/control.jsx b/web/client/src/sections/control/containers/control.jsx index 81d9d68..ac50be0 100644 --- a/web/client/src/sections/control/containers/control.jsx +++ b/web/client/src/sections/control/containers/control.jsx @@ -715,7 +715,7 @@ const Control = (props) => { {/* 统计概览 */} -
+
{/* 项目 */} { diff --git a/web/client/src/sections/control/containers/userCenter.jsx b/web/client/src/sections/control/containers/userCenter.jsx index 4eb4b8c..11cc71e 100644 --- a/web/client/src/sections/control/containers/userCenter.jsx +++ b/web/client/src/sections/control/containers/userCenter.jsx @@ -7,76 +7,48 @@ import PerfectScrollbar from "perfect-scrollbar"; const { Meta } = Card; const UserCenter = (props) => { - const { dispatch, actions, user, loading, socket } = props - useEffect(() => { - console.log('user',user); - // ACTION 示例 - // dispatch(actions.example.getMembers(user.orgId)) - }, []) - useEffect(() => { + const { dispatch, actions, user, loading, socket } = props - // ACTION 示例 - // dispatch(actions.example.getMembers(user.orgId)) - }) - - // websocket 使用测试 - // useEffect(() => { - // console.log(socket) - // if (socket) { - // socket.on('TEST', function (msg) { - // console.info(msg); - // }); - // return () => { - // socket.off("TEST"); - // } - // } - - // }, [socket]) - - return ( - <> -
- {/* 头部 */} -
-
-
- HI,欢迎回来,行业服务部 -
-
- 刘昊然! -
-
-
- {/* 主体 */} -
-
-
-
-
用户中心
-
USER CENTER
-
-
-
- - {user.name.split('')[0]} - -
-
- {/* moment(row.createTime).format("YYYY-MM-DD HH:mm:ss") */} + return ( + <> +
+ {/* 头部 */} +
+
+
+ HI,欢迎回来,行业服务部 +
+
+ 刘昊然! +
+
+
+ {/* 主体 */} +
+
+
+
+
用户中心
+
USER CENTER
+
+
+
+ + {user.name.split('')[0]} + +
- - ) + {/* moment(row.createTime).format("YYYY-MM-DD HH:mm:ss") */} +
+ + ) } function mapStateToProps (state) { - const { auth, global, members, webSocket } = state; - return { - // loading: members.isRequesting, - user: auth.user, - // actions: global.actions, - // members: members.data, - // socket: webSocket.socket - }; + const { auth, global, members, webSocket } = state; + return { + user: auth.user, + }; } export default connect(mapStateToProps)(UserCenter);