فهرست منبع

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)