Procházet zdrojové kódy

Merge branch 'feature_20250624_计划内地图查看门店问题优化' into uat(dev)

zhujindu před 5 měsíci
rodič
revize
74511be321
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      src/views/deviceOutside/rangeStore.vue

+ 4 - 4
src/views/deviceOutside/rangeStore.vue

@@ -126,6 +126,7 @@
         :min-zoom="12"
         @ready="handler"
         @reload="reload"
+        :key="baiduMapKey"
         ref="myMap">
         <!--        :minClusterSize="minClusterSize"-->
         <bml-marker-clusterer :averageCenter="false" :styles="styless">
@@ -801,6 +802,7 @@ export default {
       listpoint: [],
       heifhgts: '200px',
       mapRange: [], //地图范围
+      baiduMapKey: new Date().getTime(),
     };
   },
   created() {
@@ -816,6 +818,7 @@ export default {
   },
   activated() {
     this.listData = [];
+    this.baiduMapKey = new Date().getTime();
     this.closeFn();
     // 获取地图范围 字典
     this.getMapRange();
@@ -846,10 +849,7 @@ export default {
     this.getMonth();
     this.getStoreTypeList();
     this.getStoreLabels();
-    this.$nextTick(() => {
-      // this.onClickLeft1();
-      this.getposition();
-    });
+    this.getposition();
   },
   methods: {
     setStroeNameStyle(item) {