From 972708bd01c9fc467334e5547436772a74de1aaf Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Sun, 6 Nov 2022 18:30:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=20websocket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/control/containers/control.jsx | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/web/client/src/sections/control/containers/control.jsx b/web/client/src/sections/control/containers/control.jsx index 189e5df..625c0b2 100644 --- a/web/client/src/sections/control/containers/control.jsx +++ b/web/client/src/sections/control/containers/control.jsx @@ -60,18 +60,18 @@ const Control = (props) => { // websocket 使用测试 useEffect(() => { - if (socket) { - socket.on('alarmSendSocket', function (msg) { - // console.info(msg); - - // console.info(msg); - console.log(msg); - let a = msg; - }); - return () => { - socket.off("alarmSendSocket") - } - } + // if (socket) { + // socket.on('alarmSendSocket', function (msg) { + // // console.info(msg); + + // // console.info(msg); + // console.log(msg); + // let a = msg; + // }); + // return () => { + // socket.off("alarmSendSocket") + // } + // } }, [socket]) useEffect(() => { @@ -133,7 +133,7 @@ const Control = (props) => { } else { setProblemsList(res.payload.data) } - } + } }) // 统计概览--相关成员与web应用 await dispatch(control.getConsoleUser({ pepId: pepProjectId || projectId })).then(res => {