Browse Source

日常开发

林旭祥 3 weeks ago
parent
commit
5701679876
1 changed files with 3 additions and 2 deletions
  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>