diff --git a/static/js/chat-page.js b/static/js/chat-page.js index 6853713..8307914 100644 --- a/static/js/chat-page.js +++ b/static/js/chat-page.js @@ -71,7 +71,10 @@ new Vue({ content.time = msg.time; this.msgList.push(content); - //this.saveHistory(content); + notify(msg.name, { + body: msg.content, + icon: msg.avator + }); this.scrollBottom(); flashTitle();//标题闪烁 clearInterval(this.timer);