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> @@ -20,6 +35,8 @@ width: 100%; height: 100%; position: absolute; left: 0; top: 0; z-index: 0; .world { width: 100%;