|
@@ -815,11 +815,11 @@ export default {
|
|
this.stationList = response.data
|
|
this.stationList = response.data
|
|
if (this.stationList.length > 0) {
|
|
if (this.stationList.length > 0) {
|
|
// 判断缓存中是否是首页地图跳转
|
|
// 判断缓存中是否是首页地图跳转
|
|
- if (localStorage.getItem('map-jump-staion')==''){
|
|
|
|
- this.stationCode = this.stationList[0].value
|
|
|
|
|
|
+ if (localStorage.getItem('map-jump-staion')){
|
|
|
|
+ this.stationCode = localStorage.getItem('map-jump-staion')
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
- this.stationCode = localStorage.getItem('map-jump-staion')
|
|
|
|
|
|
+ this.stationCode = this.stationList[0].value
|
|
}
|
|
}
|
|
this.dataQuery()
|
|
this.dataQuery()
|
|
}
|
|
}
|