修改重复渲染bug

This commit is contained in:
unknown
2022-06-10 10:00:33 +08:00
parent a80e38ff0d
commit 152f0eca13

View File

@ -363,7 +363,13 @@ useEffect(() => {
useEffect(() => { useEffect(() => {
//实时渲染消息 //实时渲染消息
if(wsMsg && wsMsg.clientNo!=undefined) onMsgRender() if(wsMsg && wsMsg.clientNo!=undefined){
if(isModalVisible){ //弹窗开着才渲染
onMsgRender()
}else{
msgAlert && msgAlert() //只提醒,不渲染
}
}
}, [wsMsg]) }, [wsMsg])
const columns=[ const columns=[