wip
This commit is contained in:
@@ -76,8 +76,9 @@ export const useSocketsStore = defineStore('sockets', () => {
|
||||
const idx = chatsStore.chats.findIndex((chat) => chat.id === data.id)
|
||||
if (idx < 0) chatsStore.chats.push(data)
|
||||
|
||||
menuStore.selected = 'chats'
|
||||
chatsStore.selected = data.id
|
||||
console.log(data.id)
|
||||
menuStore.selected = ['chats']
|
||||
chatsStore.selected = [data.id]
|
||||
}
|
||||
|
||||
break
|
||||
@@ -114,6 +115,7 @@ export const useSocketsStore = defineStore('sockets', () => {
|
||||
}
|
||||
|
||||
const send = (data: unknown) => {
|
||||
console.log(COMMAND.SEND, data)
|
||||
postMessage(COMMAND.SEND, data)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user