ZhangXianQiang
2024-04-18 e96c5023821c43c26993086de3a12eaf65a9d6d1
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>