浏览代码

处理添加新会话时,没有初始化对话窗口BUG

liling 1 年之前
父节点
当前提交
e7f9334d44
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/views/liveChat/index.vue

+ 2 - 0
src/views/liveChat/index.vue

@@ -243,6 +243,8 @@ const changeMsg = async (val,isnew) => {
     // 自己添加的会话人员,默认选中进行对话
     sendCont.data.toId = resInfo.userId;
     headerName.value = resInfo.nickName;
+    clickPersonId.value = resInfo.userId
+    clickPerson(0,searchData.value[0]);
   }else if(searchData.value.length==1){
     sendCont.data.toId = resInfo.userId;
     headerName.value = resInfo.nickName;