林旭祥 hace 1 mes
padre
commit
acdaf6ee60
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/game/index.vue

+ 1 - 1
src/views/game/index.vue

@@ -212,7 +212,6 @@ const getExit = () => {
  * 退出游戏
  */
 const getExitGame = () => {
-  currentGame.value = "";
   let obj = projectList.value.find((item: any) => {
     return item.exam_name == currentGame.value
   })
@@ -220,6 +219,7 @@ const getExitGame = () => {
   myList.forEach((item: any) => {
     terminateBodypose(item);
   })
+  currentGame.value = "";
 };
 
 onBeforeMount(async () => {