zs 2 年之前
父节点
当前提交
5be4bffff6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      store/websocketStore.js

+ 1 - 0
store/websocketStore.js

@@ -67,6 +67,7 @@ const store = new Vuex.Store({
 			commit,
 			dispatch
 		}, url) {
+			dispatch('websocketClose')
 			setTimeout(() => {
 				dispatch('websocketInit', url)
 			}, 3000)