wangfei
2024-07-24 700ac256df9d0b18c5691204ac616636267f06b0
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);