在线用户列表优化

This commit is contained in:
不做码农
2023-05-16 12:25:59 +08:00
parent 1899fc694f
commit 81f7af1a19
6 changed files with 109 additions and 133 deletions
+5 -3
View File
@@ -15,9 +15,11 @@ const useSocketStore = defineStore('socket', {
this.noticeList = data
this.noticeDot = data.length > 0
},
setOnlineUsers(data) {
this.onlineUsers = data
},
// setOnlineUsers(data) {
// const { onlineNum, users } = data
// this.onlineUsers = users
// this.onlineNum = onlineNum
// },
sendChat(data) {
const { proxy } = getCurrentInstance()
console.log(data)