.
shuishen
2022-03-08 4af47e6507183a18f676d9fcabc122084546f37e
src/components/mobileCortrol/index.vue
@@ -14,26 +14,22 @@
      class="m-l-inbut zoom-in m-l-inbut-3d"
      :class="{ active: dimension == '2.5D' }"
      @click="zoomIn('2.5D')"
    >
      3D
    </div>
        >3D</div>
  </div>
</template>
<script>
import { mapGetters } from "vuex";
import { mapGetters } from 'vuex'
export default {
  name: "mobileCortrol",
    name: 'mobileCortrol',
  data() {
    return {
      DC: "",
    };
        }
  },
  computed: {
    ...mapGetters(["mviewer", "startPointFn", "dimension"]),
        ...mapGetters(['mviewer', 'startPointFn', 'dimension'])
  },
  created() {
    this.DC = global.DC;
  },
  methods: {
    zoomIn(val) {
@@ -49,14 +45,14 @@
      // });
      if (val) {
        if (this.dimension != val) {
          this.$store.dispatch("MSET_DIMENSIONS", val);
                    this.$store.dispatch('MSET_DIMENSIONS', val)
        }
        return;
                return
      }
      this.startPointFn();
    },
  },
};
            this.startPointFn()
        }
    }
}
</script>
<style scoped lang="scss">