瀏覽代碼

重连时间调成2s

lincl 3 年之前
父節點
當前提交
a3cf24a228
共有 1 個文件被更改,包括 3 次插入1 次删除
  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(){