From fd9a2a05829f84dd3925da8fabec901498ebb9e0 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期五, 29 三月 2024 16:44:44 +0800
Subject: [PATCH] chore:重构场景

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

diff --git a/src/views/screen/components/screen-map-three/index.vue b/src/views/screen/components/screen-map-three/index.vue
index 9d6eedf..1d010f4 100644
--- a/src/views/screen/components/screen-map-three/index.vue
+++ b/src/views/screen/components/screen-map-three/index.vue
@@ -1,16 +1,16 @@
 <template>
-  <div class="map-container" ref="mapContainer">
-    
+  <div class="map-container" >
+    <canvas class="world" ref="worldContainer"></canvas>
   </div>
 </template>
 
 <script>
-import World from './world/world';
+import Experience from './experience/index';
 let world = null;
 export default {
   name: 'ScreenMapThree',
   mounted() {
-    world = new World(this.$refs.mapContainer);
+    world = new Experience(this.$refs.worldContainer);
   }
 }
 </script>
@@ -19,5 +19,11 @@
 .map-container {
   width: 100%;
   height: 100%;
+  position: absolute;
+  z-index: 0;
+  .world {
+    width: 100%;
+    height: 100%;
+  }
 }
 </style>
\ No newline at end of file

--
Gitblit v1.8.0