mirror of
https://github.com/MCSManager/UI.git
synced 2025-02-23 18:49:12 +08:00
新增 连接超时定时器
This commit is contained in:
parent
a689660dcf
commit
6db84c19a7
@ -575,6 +575,12 @@ export default {
|
||||
},
|
||||
startInterval() {
|
||||
if (!this.renderTask) this.renderTask = setInterval(this.renderFromSocket, 1000);
|
||||
// 设置连接超时定时器
|
||||
setTimeout(() => {
|
||||
if (!this.available && this.unavailableTerminal === false) {
|
||||
this.unavailableTerminal = true;
|
||||
}
|
||||
}, 8000);
|
||||
},
|
||||
stopInterval() {
|
||||
clearInterval(this.renderTask);
|
||||
|
Loading…
Reference in New Issue
Block a user