Browse Source

解决了大数据量导致无法结束游戏的bug,有待测试

yerong 4 years ago
parent
commit
318fbfcf13
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/utils/bluetooth.js

+ 4 - 0
src/utils/bluetooth.js

@@ -643,6 +643,10 @@ export default {
             if ($this.played_time == 0) {
               //判断是否隐藏 隐藏则不绘画
               that.shutdownSendControl(characteristic.deviceId, $this._serviceId, $this._characteristicId)
+              let $hide_status = game_store.getters.getHideStatus()
+              if (!$hide_status) {
+                $this.game_finished()
+              }
             }
           } catch (e) {
             console.log('调用方法失败', e)