This commit is contained in:
2026-03-15 20:55:00 +03:00
parent 43366a5089
commit b84a76ac08
16 changed files with 91 additions and 103 deletions

View File

@@ -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)
}