riku
2025-03-12 42f42dc88214f283b43c422f37e10ab45c5c5578
src/components/map/MapScene.vue
@@ -42,6 +42,8 @@
import sceneInfoApi from '@/api/sceneInfoApi';
import marks from '@/utils/map/marks';
import MapUtil from '@/utils/map/util';
import { useToolboxStore } from '@/stores/toolbox';
import { mapStores } from 'pinia';
const lableMarkMap = new Map();
@@ -56,10 +58,14 @@
      sceneMap: new Map()
    };
  },
  computed: {
    ...mapStores(useToolboxStore)
  },
  watch: {
    // 当切换区县时,清空所有选项
    districtCode(nV, oV) {
      if (nV != oV) {
        this.toolboxStore.selectedDistrict = nV;
        this.handelCheckAllChange(false);
      }
    }