wu
2024-07-24 4fec20f7e2324aa44f3921e61d5a3345366552c9
UI-Project/src/utils/WebSocketService.js
@@ -18,10 +18,11 @@
      if (!msg.data) {
        return;
      }
      messages += msg.data;
      const isLastChunk = msg.data.endsWith('<END>');
      //是否为最后一块消息
      if(isLastChunk) {
      messages += msg.data;
      if(isLastChunk||msg.data.length<50000) {
        messages= messages.replace('<END>', '');
        const obj = JSON.parse(messages);