From 152f0eca13348872268e3660f0a3cb0f34550f29 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 10 Jun 2022 10:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=8D=E5=A4=8D=E6=B8=B2?= =?UTF-8?q?=E6=9F=93bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/customerservice/support/conversation/index.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/customerservice/support/conversation/index.jsx b/src/pages/customerservice/support/conversation/index.jsx index d1ddd5a..dad5291 100644 --- a/src/pages/customerservice/support/conversation/index.jsx +++ b/src/pages/customerservice/support/conversation/index.jsx @@ -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=[