From 3c6bdb6f439ff7af04765259fd6a91b6d201d095 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 19 六月 2025 17:12:25 +0800
Subject: [PATCH] 工单,数据中心用户查看数据的权限,合同考核每日,以及导出每日和按月

---
 src/views/screen/components/screen-map-three/experience/utils/time.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/views/screen/components/screen-map-three/experience/utils/time.js b/src/views/screen/components/screen-map-three/experience/utils/time.js
index 680b19d..e60078b 100644
--- a/src/views/screen/components/screen-map-three/experience/utils/time.js
+++ b/src/views/screen/components/screen-map-three/experience/utils/time.js
@@ -6,6 +6,7 @@
         this.current = this.start;
         this.elapsed = 0;
         this.delta = 16;
+        // 鍚堥�傜殑鏃舵満鎵цloop寰幆
         window.requestAnimationFrame(() => {
             this.tick();
         });
@@ -17,9 +18,14 @@
         this.current = currentTime;
         this.elapsed = this.current - this.start;
         this.trigger('tick');
-        
-        window.requestAnimationFrame(() => {
+
+        this.loopId = window.requestAnimationFrame(() => {
             this.tick();
         });
     }
+
+    destroy() {
+        window.cancelAnimationFrame(this.loopId);
+        this.off('tick');
+    }
 }
\ No newline at end of file

--
Gitblit v1.8.0