From 06cf1c7f78a33a22d075d116a3cf40e6b6915b6c Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期日, 29 九月 2024 23:28:42 +0800
Subject: [PATCH] 大屏定时器
---
src/views/screen/components/screen-map-three/experience/renderer.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/views/screen/components/screen-map-three/experience/renderer.js b/src/views/screen/components/screen-map-three/experience/renderer.js
index e75b135..a5febfa 100644
--- a/src/views/screen/components/screen-map-three/experience/renderer.js
+++ b/src/views/screen/components/screen-map-three/experience/renderer.js
@@ -30,4 +30,8 @@
update() {
this.instance.render(this.scene, this.camera.instance);
}
+ destroy() {
+ this.instance.dispose();
+ this.instance.domElement.remove();
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0