소스 검색

地图门店列表进入拜访返回后刷新问题

zhujindu 5 달 전
부모
커밋
f841f3a64a
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/views/deviceOutside/rangeStore.vue

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

@@ -804,6 +804,7 @@ export default {
     };
   },
   created() {
+    localStorage.setItem('storeCode', '');
     this.heifhgts = window.innerHeight - 190 + 'px';
     // 好邦手接入拜访系统地图功能
     // 获取url参数 userId
@@ -828,6 +829,7 @@ export default {
     this.msgshow = false;
     this.storeName = localStorage.getItem('outvstoreName');
     this.chainName = localStorage.getItem('outvchainName');
+    this.storeCode = localStorage.getItem('storeCode');
     if (localStorage.getItem('outvstoreLabelTypes') != null) {
       this.storeLabelTypes = localStorage.getItem('outvstoreLabelTypes').split(',');
     } else {
@@ -1409,6 +1411,7 @@ export default {
       }
     },
     onClickLeft() {
+      localStorage.setItem('storeCode', '');
       this.$router.go(-1);
     },
     buryingPointFn(val) {
@@ -1969,7 +1972,7 @@ export default {
         positionDesc: '',
         accuracy: res.accuracy,
       });
-      this.storeCode = val.storeCode;
+      localStorage.setItem('storeCode', val.storeCode);
       this.$router.push({
         path: '/suishenbangOutstoreVisit',
         query: {