瀏覽代碼

fix:修改聊天bug

wangsisi 1 周之前
父節點
當前提交
a9137c0c7d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/chatWindow.vue

+ 1 - 1
src/components/chatWindow.vue

@@ -479,7 +479,7 @@ const initMqtt = () => {
                             console.error(e, "e");
                         }
                     }
-                }else{
+                }else if(obj.messageType !== 'text'){
                     obj.content = JSON.parse(obj.content);
                 }
                 obj.receiverId = curUserId;