部分问题修复
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user