Browse Source

Merge branch 'master' of http://59.110.91.129:3000/zhangmengying/AIClass into wanzi

丸子 4 tháng trước cách đây
mục cha
commit
952fc3b3c5
1 tập tin đã thay đổi với 8 bổ sung8 xóa
  1. 8 8
      src/components/blockly/MapGame.vue

+ 8 - 8
src/components/blockly/MapGame.vue

@@ -1818,22 +1818,22 @@ onUnmounted(() => {
     workspace.dispose();
     workspace = null;
   }
-  
+
   // 移除事件监听器
   window.removeEventListener('resize', updateMapContainerDimensions);
-  
+
   // 停止当前正在执行的代码
   shouldStopExecution = true;
-  
+
   // 取消任何正在进行的执行
   if (executionAbortController) {
     executionAbortController.abort();
     executionAbortController = null;
   }
-  
+
   // 清除当前执行的Promise引用
   currentExecutionPromise = null;
-  
+
   // 清理所有临时DOM元素
   const mapBackground = document.querySelector('.map-background');
   if (mapBackground) {
@@ -1844,7 +1844,7 @@ onUnmounted(() => {
         mapBackground.removeChild(video);
       }
     });
-    
+
     // 清除临时动画元素
     const tempElements = mapBackground.querySelectorAll('div[style*="backgroundImage"]');
     tempElements.forEach(temp => {
@@ -1853,11 +1853,11 @@ onUnmounted(() => {
       }
     });
   }
-  
+
   // 清理全局函数引用
   window.pickupItem = null;
   window.useItem = null;
-  
+
   // 重置游戏状态
   gameState.player.carriedItems = [];
   gameState.player.position = { ...startPoint.value };