Преглед на файлове

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

yerong преди 4 години
родител
ревизия
318fbfcf13
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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)