From e96c5023821c43c26993086de3a12eaf65a9d6d1 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期四, 18 四月 2024 18:05:11 +0800
Subject: [PATCH] Merge branch 'dev-threejs'

---
 src/views/screen/components/screen-map-three/index.vue |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/src/views/screen/components/screen-map-three/index.vue b/src/views/screen/components/screen-map-three/index.vue
index a117a58..af189c1 100644
--- a/src/views/screen/components/screen-map-three/index.vue
+++ b/src/views/screen/components/screen-map-three/index.vue
@@ -9,8 +9,23 @@
 let world = null;
 export default {
   name: 'ScreenMapThree',
+  props: {
+    loadEnd: {
+      type: Boolean,
+      default: false
+    },
+  },
+  watch: {
+    loadEnd: {
+      handler(newVal) {
+        console.log(newVal);
+        if(newVal) {
+          world = new Experience(this.$refs.worldContainer);
+        }
+      }
+    }
+  },
   mounted() {
-    world = new Experience(this.$refs.worldContainer);
   }
 }
 </script>

--
Gitblit v1.8.0