Commit a773c754 authored by zhengjiawei's avatar zhengjiawei

线路维护

parent a26ad386
...@@ -169,9 +169,9 @@ class StationMainten extends Component { ...@@ -169,9 +169,9 @@ class StationMainten extends Component {
initMap() { initMap() {
let _this = this; let _this = this;
if (outMap) { if (outMap) {
Object.keys(localStorage).map(e => { Object.keys(window.localStorage).map(e => {
if (e.indexOf('_AMap') === 0) { if (e.indexOf('_AMap') === 0) {
localStorage.removeItem(e); window.localStorage.removeItem(e);
} }
}); });
let script = null; let script = null;
...@@ -195,8 +195,6 @@ class StationMainten extends Component { ...@@ -195,8 +195,6 @@ class StationMainten extends Component {
BasicMap: require('./indexMap') BasicMap: require('./indexMap')
}); });
}, timeout2000); }, timeout2000);
console.log(this.state);
console.log(require('./indexMap'));
}); });
}); });
} else { } else {
......
...@@ -69,7 +69,7 @@ class IndexMap extends Component { ...@@ -69,7 +69,7 @@ class IndexMap extends Component {
* @memberof IndexMap * @memberof IndexMap
*/ */
handleClickMap = e => { handleClickMap = e => {
let { marker } = this.state; const { marker } = this.state;
marker.longitude = e.lnglat.lng; marker.longitude = e.lnglat.lng;
marker.latitude = e.lnglat.lat; marker.latitude = e.lnglat.lat;
this.setState({ marker }); this.setState({ marker });
...@@ -81,7 +81,7 @@ class IndexMap extends Component { ...@@ -81,7 +81,7 @@ class IndexMap extends Component {
created: this.setInstanceToGlobal, created: this.setInstanceToGlobal,
click: this.handleClickMap click: this.handleClickMap
}; };
let { mapCenter, marker } = this.state; const { mapCenter, marker } = this.state;
if (outMap) { if (outMap) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment