From e92dd671ed1f79243bee0083aecbc5627b5cc7f6 Mon Sep 17 00:00:00 2001
From: guonan <guonan201020@163.com>
Date: 星期四, 10 七月 2025 16:17:52 +0800
Subject: [PATCH] 断面echart清除

---
 src/components/menu/TimeLine.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/components/menu/TimeLine.vue b/src/components/menu/TimeLine.vue
index 649f970..b341eb1 100644
--- a/src/components/menu/TimeLine.vue
+++ b/src/components/menu/TimeLine.vue
@@ -340,8 +340,9 @@
       }
 
       // 瑙﹀彂杩涘害鏇存柊
-      const progress = currentTime.value / totalDuration;
-      emit("timeUpdate", progress * 100);
+      // const progress = currentTime.value / totalDuration;
+      // 瀹炴椂妯℃嫙搴旇涓嶇敤鏄剧ず寮圭獥鍚�
+      // emit("timeUpdate", progress * 100);
 
       // 濡傛灉闇�瑕佽Е鍙戞煇浜涙洿鏂板嚱鏁帮紝涔熷彲浠ヤ繚鐣�
       updateWaterColorByTime();
@@ -1076,7 +1077,11 @@
 watch(
   () => finishPlay.value,
   (newVal) => {
-    if (newVal && selectedScheme.value.type === 2) {
+    if (
+      newVal &&
+      selectedScheme.value.type === 2 &&
+      simStore.rePlayList.length > 0
+    ) {
       handlePlayFinished();
     }
   }
@@ -1153,9 +1158,9 @@
 async function endSimulation() {
   clearAllPoints();
   simStore.openDia = true;
+  simStore.crossSection = [];
   // 缁撴潫妯℃嫙涔嬪悗娓呴櫎layer鍒楄〃
   simStore.rePlayList = [];
-  console.log(simStore.rePlayList, "缁撴潫妯℃嫙娓呴櫎rePlayListrePlayList鍒楄〃");
   EventBus.emit("close-time");
   endSimulate();
   isWaterPrimitiveCreated.value = false;

--
Gitblit v1.9.3