Browse Source

重连时间调成2s

lincl 3 years ago
parent
commit
a3cf24a228
1 changed files with 3 additions and 1 deletions
  1. 3 1
      mini-pro-web/src/views/machine/index.vue

+ 3 - 1
mini-pro-web/src/views/machine/index.vue

@ -524,7 +524,9 @@ export default {
				this.reconnect = true
				this.$loading('服务器异常断开,正在重连..')
				console.log("socket已经关闭")
				this.init()
				setTimeout(()=>{
					this.init()
				}, 2000)
			}
		},
		heartbit(){