一对一聊天重构,期待群聊开发

This commit is contained in:
2024-11-21 17:31:08 +08:00
parent 446b669c75
commit d6b81d4559
185 changed files with 5034 additions and 88 deletions

View File

@@ -90,8 +90,8 @@ const webSocketOnError = (e) => {
//服务器返回的数据
const webSocketOnMessage = (e)=> {
console.log(e)
//判断是否登录
console.log(JSON.parse(e?.data))
if (getToken()) {
//window自定义事件
window.dispatchEvent(