完善 websocket 封装

This commit is contained in:
puhui999
2024-07-12 17:43:08 +08:00
parent 9399a3e223
commit 7baec78c02
4 changed files with 111 additions and 76 deletions
-1
View File
@@ -217,7 +217,6 @@
// 虚拟列表展示可视区域的数据
const includePage = index => {
console.log(visiblePagesList.value, index);
return visiblePagesList.value.indexOf(index) > -1;
};
+5
View File
@@ -12,3 +12,8 @@ export const UserTypeEnum = {
MEMBER: 1, // 会员 面向 c 端,普通用户
ADMIN: 2, // 管理员 面向 b 端,管理后台
};
// Promotion 的 WebSocket 消息类型枚举类
export const WebSocketMessageTypeConstants = {
KEFU_MESSAGE_TYPE: 'kefu_message_type', // 客服消息类型
KEFU_MESSAGE_ADMIN_READ: 'kefu_message_read_status_change' // 客服消息管理员已读
}