diff --git a/code/VideoAccess-VCMP/web/client/src/app.jsx b/code/VideoAccess-VCMP/web/client/src/app.jsx index 19c81a1..fbdf2dd 100644 --- a/code/VideoAccess-VCMP/web/client/src/app.jsx +++ b/code/VideoAccess-VCMP/web/client/src/app.jsx @@ -3,7 +3,7 @@ import React, { useEffect } from 'react'; import Layout from './layout'; import Auth from './sections/auth'; -import Example from './sections/example'; +// import Example from './sections/example'; import EquipmentWarehouse from './sections/equipmentWarehouse'; const App = props => { @@ -16,7 +16,7 @@ const App = props => { return ( ) } diff --git a/code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx b/code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx index 6b74fab..f1b6c3f 100644 --- a/code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx +++ b/code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx @@ -94,6 +94,7 @@ const LayoutContainer = props => { { - const { dispatch, actions, user, loading } = props + const { dispatch, actions, user, loading } = props; - useEffect(() => { - // ACTION 示例 - dispatch(actions.example.getMembers(user.orgId)) - }, []) + useEffect(() => { + // ACTION 示例 + // dispatch(actions.example.getMembers(user.orgId)); + }, []); - return ( - - - STYLE EXAMPLE - - - } - > - - - - ) -} + return ; +}; -function mapStateToProps (state) { - const { auth, global, members } = state; - return { - loading: members.isRequesting, - user: auth.user, - actions: global.actions, - members: members.data - }; +function mapStateToProps(state) { + const { auth, global, members } = state; + return { + loading: members.isRequesting, + user: auth.user, + actions: global.actions, + members: members.data, + }; } export default connect(mapStateToProps)(Example);
STYLE EXAMPLE