修改重复渲染bug
This commit is contained in:
@ -363,7 +363,13 @@ useEffect(() => {
|
||||
|
||||
useEffect(() => {
|
||||
//实时渲染消息
|
||||
if(wsMsg && wsMsg.clientNo!=undefined) onMsgRender()
|
||||
if(wsMsg && wsMsg.clientNo!=undefined){
|
||||
if(isModalVisible){ //弹窗开着才渲染
|
||||
onMsgRender()
|
||||
}else{
|
||||
msgAlert && msgAlert() //只提醒,不渲染
|
||||
}
|
||||
}
|
||||
}, [wsMsg])
|
||||
|
||||
const columns=[
|
||||
|
Reference in New Issue
Block a user