소스 검색

日常开发

林旭祥 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') {
-
+      closeWS();
+      getExit();
     }
     if (e?.type == 'disconnect') {
       getExit();
@@ -221,7 +222,7 @@ onMounted(() => {
 });
 
 onBeforeUnmount(() => {
-
+  closeWS();
 });
 </script>