林旭祥 1 ماه پیش
والد
کامیت
5701679876
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      src/views/game/index.vue

+ 3 - 2
src/views/game/index.vue

@@ -179,7 +179,8 @@ const getInit = async () => {
       }
       }
     }
     }
     if (e?.cmd == 'terminate_bodyposecontroller') {
     if (e?.cmd == 'terminate_bodyposecontroller') {
-
+      closeWS();
+      getExit();
     }
     }
     if (e?.type == 'disconnect') {
     if (e?.type == 'disconnect') {
       getExit();
       getExit();
@@ -221,7 +222,7 @@ onMounted(() => {
 });
 });
 
 
 onBeforeUnmount(() => {
 onBeforeUnmount(() => {
-
+  closeWS();
 });
 });
 </script>
 </script>