|
|
@@ -282,8 +282,8 @@ export default {
|
|
|
qwUserSessions: {},
|
|
|
// 存储每个企微账号的分页信息
|
|
|
qwUserPages: {},
|
|
|
- // 公司ID,用于WebSocket连接
|
|
|
- companyId: null,
|
|
|
+ // 销售ID,用于WebSocket连接
|
|
|
+ companyUserId: null,
|
|
|
// 存储每个企微账号的未读消息数
|
|
|
qwUserUnreadCount: [],
|
|
|
//联系人列表
|
|
|
@@ -306,7 +306,7 @@ export default {
|
|
|
this.qwUser = this.qwUserList[0];
|
|
|
this.appKey = this.qwUser.appKey;
|
|
|
this.appId=this.qwUser.id;
|
|
|
- this.companyId = this.qwUser.companyId; // 保存公司ID用于WebSocket连接
|
|
|
+ this.companyUserId = this.qwUser.companyUserId;
|
|
|
this.setQwUserInfo();
|
|
|
this.getConversation();
|
|
|
// 初始化单个WebSocket连接
|
|
|
@@ -428,7 +428,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
// 创建新的WebSocket连接,使用公司ID
|
|
|
- this.imSocket = new ImSocket(`${this.imUrl}/${this.companyId}?token=${getToken()}`);
|
|
|
+ this.imSocket = new ImSocket(`${this.imUrl}/${this.companyUserId}?token=${getToken()}`);
|
|
|
|
|
|
// 处理接收到的消息
|
|
|
this.imSocket.onMessage(data => {
|