增加在线用户系统通知

This commit is contained in:
不做码农
2022-07-02 16:50:56 +08:00
parent 3c3798e3b3
commit 4035eaee47
4 changed files with 58 additions and 15 deletions
+4
View File
@@ -17,6 +17,10 @@ const useSocketStore = defineStore('socket', {
},
setOnlineUsers(data) {
this.onlineUsers = data
},
sendChat(data) {
const { proxy } = getCurrentInstance()
console.log(data)
}
}
})