Explorar o código

update pc_chat

luke %!s(int64=6) %!d(string=hai) anos
pai
achega
85e57d036f
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      pc_chat/src/components/chat.vue

+ 6 - 2
pc_chat/src/components/chat.vue

@@ -656,7 +656,8 @@
 				resigtermsg: false, //提示重连
 				evaluateNum: false,
 				jumps: false,
-				customerTime: ""
+				customerTime: "",
+				helloNum: true, // 欢迎语限制
 			}
 		},
 		filters: {
@@ -1237,10 +1238,13 @@
 				}
 				// 欢迎语
 				if (redata.message_type == 'helloMessage') {
-					this.machine.push(redata.data.content);
+					if(this.helloNum){
+						this.machine.push(redata.data.content);
+					}
 				}
 				// 广告语
 				if (redata.message_type == 'advertisement') {
+					this.helloNum = false
 					this.advert = redata.data;
 				}
 				// 评价