|
@@ -42,13 +42,7 @@ export default {
|
|
},
|
|
},
|
|
watch: {},
|
|
watch: {},
|
|
created() {
|
|
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() {
|
|
mounted() {
|
|
},
|
|
},
|
|
@@ -57,9 +51,6 @@ export default {
|
|
superMapInfo(){
|
|
superMapInfo(){
|
|
getConfigKey('superMap.iServer').then(response => {
|
|
getConfigKey('superMap.iServer').then(response => {
|
|
this.superMapRootUrl = response.msg;
|
|
this.superMapRootUrl = response.msg;
|
|
- Cookies.set('superMap.iServer', response.msg, {
|
|
|
|
- expires: 300
|
|
|
|
- })
|
|
|
|
this.onload();
|
|
this.onload();
|
|
})
|
|
})
|
|
},
|
|
},
|