Commit 4037652b authored by 前端-彭佳文's avatar 前端-彭佳文

Merge branch 'v2-220418-ljr' into 'v2-220418'

fix: 修改websocket连接 See merge request linkseeks-design/pro-platform!72
parents 4bcdea5e 446eb519
...@@ -83,10 +83,10 @@ const GlobalHeaderRight: React.FC<{ SiteStore?: any, isHome: boolean }> = (props ...@@ -83,10 +83,10 @@ const GlobalHeaderRight: React.FC<{ SiteStore?: any, isHome: boolean }> = (props
console.log("socket 出错") console.log("socket 出错")
} }
} }
}, [ws, userInfo]); }, [ws]);
useEffect(() => { useEffect(() => {
webSocketInit(); userInfo && webSocketInit();
return () => { return () => {
ws.current?.close(); ws.current?.close();
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment