wang_xy před 2 roky
rodič
revize
2b8dc0a458
1 změnil soubory, kde provedl 1 přidání a 10 odebrání
  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();
       })
     },