|
@@ -1465,7 +1465,7 @@ export default {
|
|
//7.如果不存在,则创建单聊
|
|
//7.如果不存在,则创建单聊
|
|
this.createSession();
|
|
this.createSession();
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ this.forSearchConversationList();
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.$message.error('获取会话列表失败!')
|
|
this.$message.error('获取会话列表失败!')
|
|
})
|
|
})
|
|
@@ -2486,6 +2486,7 @@ export default {
|
|
//当ws创建成功以后再执行,防止数据未加载
|
|
//当ws创建成功以后再执行,防止数据未加载
|
|
this.ws.onopen = () => {
|
|
this.ws.onopen = () => {
|
|
console.log("ws创建成功!");
|
|
console.log("ws创建成功!");
|
|
|
|
+ console.log(this.$route.query.friend_id)
|
|
//判断当前路由是否携带friend_id
|
|
//判断当前路由是否携带friend_id
|
|
if(this.$route.query.friend_id){
|
|
if(this.$route.query.friend_id){
|
|
//1.从通讯录进入会话大厅
|
|
//1.从通讯录进入会话大厅
|