diff --git a/web/client/src/layout/actions/global.js b/web/client/src/layout/actions/global.js index 015d0c5..cf8082d 100644 --- a/web/client/src/layout/actions/global.js +++ b/web/client/src/layout/actions/global.js @@ -39,6 +39,8 @@ export function initApiRoot () { payload: { apiRoot: res.root, iotVcmpWeb:res.iotVcmpWeb, + pomsMonitor:res.pomsMonitor, + dcWeb:res.dcWeb, } }) }); diff --git a/web/client/src/layout/reducers/global.js b/web/client/src/layout/reducers/global.js index 2590521..2b16eef 100644 --- a/web/client/src/layout/reducers/global.js +++ b/web/client/src/layout/reducers/global.js @@ -12,6 +12,8 @@ function global (state = { clientWidth: 1024, apiRoot: '', iotVcmpWeb: '', + pomsMonitor:'', + dcWeb:'', }, action) { const payload = action.payload; switch (action.type) { @@ -31,7 +33,9 @@ function global (state = { case INIT_API_ROOT: return Immutable.fromJS(state).merge({ apiRoot: payload.apiRoot, - iotVcmpWeb: payload.iotVcmpWeb + iotVcmpWeb: payload.iotVcmpWeb, + pomsMonitor:payload.pomsMonitor, + dcWeb:payload.dcWeb, }).toJS(); case PEPPROJECTID: return Immutable.fromJS(state).merge({ diff --git a/web/client/src/sections/facility/containers/monitor.jsx b/web/client/src/sections/facility/containers/monitor.jsx index 8173c65..6dfa6cf 100644 --- a/web/client/src/sections/facility/containers/monitor.jsx +++ b/web/client/src/sections/facility/containers/monitor.jsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; const Server = (props) => { - const { dispatch, actions, user, loading, socket } = props + const { dispatch, actions, user, loading, socket,pomsMonitor } = props useEffect(() => { @@ -16,7 +16,7 @@ const Server = (props) => {
{/* */} {/*