增加消息提示音

pull/23/head
陶士涵 4 years ago
parent 6c774f7d7e
commit 9d190dca82

@ -73,6 +73,7 @@ new Vue({
//this.saveHistory(content); //this.saveHistory(content);
this.scrollBottom(); this.scrollBottom();
flashTitle();//标题闪烁 flashTitle();//标题闪烁
clearInterval(this.timer);
this.alertSound();//提示音 this.alertSound();//提示音
} }
if (redata.type == "close") { if (redata.type == "close") {
@ -245,8 +246,9 @@ new Vue({
content.content = replaceContent(content.content); content.content = replaceContent(content.content);
_this.msgList.push(content); _this.msgList.push(content);
_this.scrollBottom(); _this.scrollBottom();
_this.sendSound();
i++; i++;
},3000); },4000);
} }
} }

Loading…
Cancel
Save