wang_xy 2 년 전
부모
커밋
2b8dc0a458
1개의 변경된 파일1개의 추가작업 그리고 10개의 파일을 삭제
  1. 1 10
      src/components/supermap-2.5d.vue

+ 1 - 10
src/components/supermap-2.5d.vue

@@ -42,13 +42,7 @@ export default {
   },
   watch: {},
   created() {
-    this.superMapRootUrl = Cookies.get('superMap.iServer');
-    //进入主页时就获取超图地址并存入cookie
-    if(this.superMapRootUrl != null && this.superMapRootUrl != '' && this.superMapRootUrl != undefined && this.superMapRootUrl != 'undefined'){
-      this.onload();
-    }else{
-      this.superMapInfo();
-    }
+    this.superMapInfo();
   },
   mounted() {
   },
@@ -57,9 +51,6 @@ export default {
     superMapInfo(){
       getConfigKey('superMap.iServer').then(response => {
         this.superMapRootUrl = response.msg;
-        Cookies.set('superMap.iServer', response.msg, {
-          expires: 300
-        })
         this.onload();
       })
     },