Преглед изворни кода

Merge branch 'deploy' of http://git.chelingzhu.com/jianguan-web/qpls-md-html into deploy

chenrui пре 3 година
родитељ
комит
8795b36ad7
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/store/modules/websocketStore.js

+ 3 - 1
src/store/modules/websocketStore.js

@@ -53,7 +53,9 @@ export default {
         // console.log('ws发送心跳!')
         if (state.websock.readyState == 3) {
           clearInterval(state.heartInterId)
-          _this.commit('WEBSOCKET_INIT', url)
+          setTimeout(function() {
+            _this.commit('WEBSOCKET_INIT', url)
+          }, 500);
         }
         state.websock.send('ping')
       }, 10000)