Commit a773c754 authored by zhengjiawei's avatar zhengjiawei

线路维护

parent a26ad386
......@@ -169,9 +169,9 @@ class StationMainten extends Component {
initMap() {
let _this = this;
if (outMap) {
Object.keys(localStorage).map(e => {
Object.keys(window.localStorage).map(e => {
if (e.indexOf('_AMap') === 0) {
localStorage.removeItem(e);
window.localStorage.removeItem(e);
}
});
let script = null;
......@@ -195,8 +195,6 @@ class StationMainten extends Component {
BasicMap: require('./indexMap')
});
}, timeout2000);
console.log(this.state);
console.log(require('./indexMap'));
});
});
} else {
......
......@@ -69,7 +69,7 @@ class IndexMap extends Component {
* @memberof IndexMap
*/
handleClickMap = e => {
let { marker } = this.state;
const { marker } = this.state;
marker.longitude = e.lnglat.lng;
marker.latitude = e.lnglat.lat;
this.setState({ marker });
......@@ -81,7 +81,7 @@ class IndexMap extends Component {
created: this.setInstanceToGlobal,
click: this.handleClickMap
};
let { mapCenter, marker } = this.state;
const { mapCenter, marker } = this.state;
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