Browse Source

fix 控制台滚动

dev
巴林闲侠 2 years ago
parent
commit
bd491cf9c3
  1. 2
      web/client/src/sections/control/containers/control.jsx
  2. 28
      web/client/src/sections/control/containers/userCenter.jsx

2
web/client/src/sections/control/containers/control.jsx

@ -715,7 +715,7 @@ const Control = (props) => {
</div>
</div>
{/* 统计概览 */}
<div id='overviewCalc' style={{ width: 'calc(100% - 200px)', position: 'relative' }}>
<div id='overviewCalc' style={{ width: 'calc(100%)', position: 'relative' }}>
<div style={{ display: 'inline-flex', marginTop: 16 }}>
{/* 项目 */}
{

28
web/client/src/sections/control/containers/userCenter.jsx

@ -8,30 +8,6 @@ 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(() => {
// 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 (
<>
@ -71,11 +47,7 @@ const UserCenter = (props) => {
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
};
}

Loading…
Cancel
Save