src/views/screen/components/screen-map-three/index.vue
@@ -18,7 +18,6 @@ watch: { loadEnd: { handler(newVal) { console.log(newVal); if(newVal) { world = new Experience(this.$refs.worldContainer); } @@ -26,7 +25,12 @@ } }, mounted() { } }, beforeDestroy() { world.destroy(); world = null; }, } </script> @@ -38,6 +42,7 @@ left: 0; top: 0; z-index: 0; .world { width: 100%; height: 100%;