diff --git a/web/client/src/layout/actions/webSocket.js b/web/client/src/layout/actions/webSocket.js index d27ee01..ca1b6b7 100644 --- a/web/client/src/layout/actions/webSocket.js +++ b/web/client/src/layout/actions/webSocket.js @@ -22,19 +22,19 @@ export function initWebSocket ({ ioUrl, token, pomsUserId }) { } return dispatch => { - const socket = io( - ioUrl - // 'http://10.8.30.7:4000' - , { - query: { - token: token, - pomsUserId: pomsUserId - }, - }); + // const socket = io( + // ioUrl + // // 'http://10.8.30.7:4000' + // , { + // query: { + // token: token, + // pomsUserId: pomsUserId + // }, + // }); dispatch({ type: INIT_WEB_SOCKET, payload: { - socket: socket + socket:null// socket } }) } diff --git a/web/client/src/sections/control/containers/control.jsx b/web/client/src/sections/control/containers/control.jsx index 625c0b2..f7231a5 100644 --- a/web/client/src/sections/control/containers/control.jsx +++ b/web/client/src/sections/control/containers/control.jsx @@ -105,9 +105,9 @@ const Control = (props) => { if (pepProjectId) setProjectId(pepProjectId) if (!projectId) { // 工作台数据请求 - await dispatch(control.getConsoleCount({ pepProjectId: pepProjectId })).then(res => { - if (res.success) setWorkData(res.payload.data) - }) + // await dispatch(control.getConsoleCount({ pepProjectId: pepProjectId })).then(res => { + // if (res.success) setWorkData(res.payload.data) + // }) // 查询BI分析数据-数据 await dispatch(control.getDataAlarmsAggDay({ pepProjectId: pepProjectId })).then(res => { if (res.success) setDataBI(res.payload.data)