跳转登录

master
wuzuowei 6 months ago
parent 3571fc7688
commit 873c99624a

@ -35,15 +35,15 @@ const RightInfo = () => {
const [searchList, setSearchList] = useState<any[]>([])
const [msgnum, setmsgnum] = useState<any>("");
//const [isHidden, setIsHidden] = useState(true); // 初始化状态变量为 false
const ws = useRef<Socket>(new Socket(new SocketOption()))
const [socketData, setsocketData] = useState<any>({})
useEffect(() => {
// startSocket()
// const ws = useRef<Socket>(new Socket(new SocketOption()))
// const [socketData, setsocketData] = useState<any>({})
// useEffect(() => {
// startSocket()
return () => {
ws.current.dispose()
}
}, []);
// return () => {
// ws.current.dispose()
// }
// }, []);
// const startSocket = () => {
// let option = new SocketOption()

Loading…
Cancel
Save