Browse Source

修改bug

修改bug
Sean 3 tháng trước cách đây
mục cha
commit
052c138099
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      src/views/chat/hall.vue

+ 7 - 0
src/views/chat/hall.vue

@@ -2230,6 +2230,8 @@ export default {
         console.log("来自单聊消息:"+this.receiverId,message.user_id)
         this.chatrecords.push(receiveMessage);
         console.log(message)
+        //滚动条滚动到底部
+        this.scorllBottom();
       }
       
     },
@@ -2845,6 +2847,8 @@ export default {
               background: #5570F1;
               position: relative;
               min-height: 50px;
+              word-wrap:break-word;
+              word-break:break-all;
             }
             .otherUserMessageText::before {
               content: '';
@@ -2882,6 +2886,9 @@ export default {
               position: relative;
               min-height: 50px;
               cursor: pointer;
+              word-wrap:break-word;
+              word-break:break-all;
+              //width: 100%;
             }
             .meUserMessageText::before {
               content: '';