Sfoglia il codice sorgente

自动退出添加token

jinquanwu 6 anni fa
parent
commit
d73a624f65
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      CallCenterWeb.UI/js/index.js

+ 1 - 2
CallCenterWeb.UI/js/index.js

@@ -18,7 +18,6 @@ $(document).ready(function() {
18 18
 	getTopMsgs();
19 19
 	setInterval(function() {
20 20
 		getTopMsgs();
21
-		token: $.cookie("token")
22 21
 	}, huayi.config.topMsgTime);
23 22
 	$.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
24 23
 		"token": $.cookie("token")
@@ -196,7 +195,7 @@ $(document).ready(function() {
196 195
 	workcount();
197 196
 	setInterval(function() {
198 197
 		workcount();
199
-		token: $.cookie("token")
198
+		$.cookie("token", $.cookie("token"), {expires: 7});
200 199
 	}, huayi.config.menuworktime);
201 200
 
202 201
 	//修改密码开始