Browse Source

结束游戏状态

chaooo 1 year ago
parent
commit
004c23db93
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/pages/games/play/index.vue

+ 3 - 3
src/pages/games/play/index.vue

@@ -357,9 +357,7 @@ export default {
       game_store.setters.setPlayedTime($this.total_time - $this.play_time);
       // 设置未结束游戏
       $this.is_end = false;
-      $this.end_loading = false
-    } else {
-      $this.end_loading = true
+      $this.end_loading = false;
     }
     game_store.setters.setHideStatus(true);
     let game_status = game_store.getters.getGameStatus()*1;
@@ -524,6 +522,7 @@ export default {
       $this.end_loading = true;
       $this.is_end = true;
       clearInterval($timeout);
+      game_store.setters.setGameStatus(3);
       LOG_DEBUG("正在结束游戏->endTheGame()");
       // 关闭脑控
       $this.$connection.sendControlClose();
@@ -595,6 +594,7 @@ export default {
       }
       // 重置状态
       $this.is_end = false;
+      $this.end_loading = false;
       $this.att_list = [];
       $this.med_list = [];
       $this.amp_list = [];