From 5cdfbdc8f929118c7b778496fd2ee3949aa5b99a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B6=E5=A3=AB=E6=B6=B5?= <630892807@qq.com> Date: Thu, 29 Oct 2020 22:14:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E6=AF=8F=E6=AC=A1=E9=83=BD=E5=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/html/chat_page.html | 2 +- static/js/chat-page.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/static/html/chat_page.html b/static/html/chat_page.html index c32191a..aa72e6c 100644 --- a/static/html/chat_page.html +++ b/static/html/chat_page.html @@ -79,5 +79,5 @@ var KEFU_ID='{{.KEFU_ID}}'; var REFER='{{.Refer}}'; - + diff --git a/static/js/chat-page.js b/static/js/chat-page.js index b7f6b8e..ae7959c 100644 --- a/static/js/chat-page.js +++ b/static/js/chat-page.js @@ -246,7 +246,9 @@ new Vue({ content.content = replaceContent(content.content); _this.msgList.push(content); _this.scrollBottom(); - _this.alertSound(); + if(i==0){ + _this.alertSound(); + } i++; },4000); }