部分问题修复

This commit is contained in:
2025-12-04 16:25:51 +08:00
parent f061a7442c
commit b9743fe268
8 changed files with 49 additions and 9 deletions

View File

@@ -93,6 +93,15 @@ export const useChatStore = defineStore("chat", {
this.onReceiveMsg(data.data);
console.log(this.chatList);
}
if (data && data.operate_type == "receive_msg") {
const msg={
...data.data,
operate_type:"receive_msg",
}
this.chatList.unshift(msg);
this.onReceiveMsg(msg);
console.log(this.chatList);
}
});
this.socketTask.onError((res) => {