|
@@ -31,7 +31,7 @@ export default {
|
|
|
return {
|
|
|
dir: 'ltr',
|
|
|
userAgentTipShow: false,
|
|
|
- timeOut: null
|
|
|
+ timeout: null
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -44,10 +44,10 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
sessionStorage.setItem('lastClickTime', new Date().getTime());
|
|
|
- this.isTimeOut();
|
|
|
+ this.isTimeout();
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
- clearInterval(this.timeOut);
|
|
|
+ clearInterval(this.timeout);
|
|
|
},
|
|
|
methods: {
|
|
|
handleUserAgentRoot() {
|
|
@@ -59,14 +59,14 @@ export default {
|
|
|
sessionStorage.setItem('useragent_root_close', true);
|
|
|
this.userAgentTipShow = false;
|
|
|
},
|
|
|
- isTimeOut() {
|
|
|
- clearInterval(this.timeOut);
|
|
|
- this.timeOut = setInterval(() => {
|
|
|
+ isTimeout() {
|
|
|
+ clearInterval(this.timeout);
|
|
|
+ this.timeout = setInterval(() => {
|
|
|
let nowTime = new Date().getTime();
|
|
|
let { token } = getConfig();
|
|
|
let { user_connection_timeout_duration, sys_home_url } = token;
|
|
|
if (nowTime - Number(sessionStorage.getItem('lastClickTime')) > 1000 * user_connection_timeout_duration) {
|
|
|
- clearInterval(this.timeOut);
|
|
|
+ clearInterval(this.timeout);
|
|
|
sessionStorage.removeItem('SysList');
|
|
|
removeToken();
|
|
|
Cookies.remove('JSESSIONID');
|