From 0c68518827e6f0347f8f5886ce709cda391f57ec Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 16 Jun 2022 15:07:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=92=8Cuat=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/customerservice/support/conversation/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/customerservice/support/conversation/index.jsx b/src/pages/customerservice/support/conversation/index.jsx index 7220479..54d29b9 100644 --- a/src/pages/customerservice/support/conversation/index.jsx +++ b/src/pages/customerservice/support/conversation/index.jsx @@ -151,7 +151,7 @@ const conversation = (props) => { msgAlert && msgAlert() } } - //点击获取更多信息 + //点击获取更多信息,和uat不一致 const getMoreMessage = (pageNum)=>{ let serverAvatar = user let customerAvatar = client From 88ba3ccd6a95c827ee6f27789b591ff09ebb57d3 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 16 Jun 2022 16:01:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?setShow=E4=B8=8D=E6=94=BE=E5=88=B0onOpen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/customerservice/support/conversation/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/customerservice/support/conversation/index.jsx b/src/pages/customerservice/support/conversation/index.jsx index 54d29b9..a608066 100644 --- a/src/pages/customerservice/support/conversation/index.jsx +++ b/src/pages/customerservice/support/conversation/index.jsx @@ -255,6 +255,7 @@ const getToken = ()=>{ supplierNo:kfType==1?'EMPTY':agentNumber }).then(res => { if (res && res.success) { + setShow(true) websocketInit(staffId) setLoading(true) getMoreMessage(1) @@ -281,7 +282,6 @@ const monitorWebSocket = (ws)=>{ console.log("Connection open ..."); //记录ws CUSTOMERSERVICE_WEBSOCKET.push(ws) - setShow(true) //连接建立后,才可以显示弹窗、收发消息 } // 接收服务端数据时触发事件 ws.onmessage = function (res) {