diff --git a/static/html/chat_page.html b/static/html/chat_page.html
index 0acde3f..0e4e965 100644
--- a/static/html/chat_page.html
+++ b/static/html/chat_page.html
@@ -183,7 +183,9 @@
this.saveHistory(content);
this.scrollBottom();
+ flashTitle();//标题闪烁
}
+ window.parent.postMessage(redata);
},
//发送给客户
chatToUser() {
@@ -378,11 +380,19 @@
}
},5000);
},
+ //初始化
+ init(){
+ this.initCss();
+ this.initConn();
+ window.onfocus = function () {
+ clearTimeout(titleTimer);
+ document.title = originTitle;
+ };
+ },
},
created: function () {
- this.initCss();
- this.initConn();
+ this.init();
this.getUserInfo();
//加载历史记录
this.getMesssagesByVisitorId();
diff --git a/static/html/index.html b/static/html/index.html
index ebe6eca..8f8404a 100644
--- a/static/html/index.html
+++ b/static/html/index.html
@@ -8,6 +8,7 @@
+