فهرست منبع

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;