From 873c99624afae9a8f612b5c1189745877b2a8866 Mon Sep 17 00:00:00 2001 From: wuzuowei Date: Sat, 11 May 2024 20:33:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/microhost/components/rightInfo/index.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platform-code/src/microhost/components/rightInfo/index.tsx b/platform-code/src/microhost/components/rightInfo/index.tsx index 625c9b3..f19c270 100644 --- a/platform-code/src/microhost/components/rightInfo/index.tsx +++ b/platform-code/src/microhost/components/rightInfo/index.tsx @@ -35,15 +35,15 @@ const RightInfo = () => { const [searchList, setSearchList] = useState([]) const [msgnum, setmsgnum] = useState(""); //const [isHidden, setIsHidden] = useState(true); // 初始化状态变量为 false - const ws = useRef(new Socket(new SocketOption())) - const [socketData, setsocketData] = useState({}) - useEffect(() => { - // startSocket() + // const ws = useRef(new Socket(new SocketOption())) + // const [socketData, setsocketData] = useState({}) + // useEffect(() => { + // startSocket() - return () => { - ws.current.dispose() - } - }, []); + // return () => { + // ws.current.dispose() + // } + // }, []); // const startSocket = () => { // let option = new SocketOption()