From 1a79689207445adf18198f01c8126fd750694423 Mon Sep 17 00:00:00 2001 From: Cmen <1176967590@qq.com> Date: Sat, 5 Mar 2022 20:08:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=9B=B4=E6=96=B0=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E5=AE=9A=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/map/editors/RectangleEditor.ts | 1 - src/store/actions/index.ts | 8 +++----- src/store/reducers/map/index.ts | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/map/editors/RectangleEditor.ts b/src/map/editors/RectangleEditor.ts index 5d2fd92..4e655ee 100644 --- a/src/map/editors/RectangleEditor.ts +++ b/src/map/editors/RectangleEditor.ts @@ -38,7 +38,6 @@ export class RectangleEditor extends BaseOverlayEditor { new AMap.LngLat(west, south), new AMap.LngLat(east, north) ); - console.log(bounds); const rectOverlay = new AMap.Rectangle({ bounds, fillOpacity: 0.1, diff --git a/src/store/actions/index.ts b/src/store/actions/index.ts index 6609f98..7a1f270 100644 --- a/src/store/actions/index.ts +++ b/src/store/actions/index.ts @@ -17,7 +17,7 @@ export class EditorAction { store: IStore; constructor(store: IStore) { this.store = store; - this._bindOperations(); + this._bindActions(); this._registerHotkeys(); } @@ -45,9 +45,7 @@ export class EditorAction { mapReady() { const cached = sessionStorage.getItem("fine-geojson"); if (cached != null) { - setTimeout(() => { - this._openProject(JSON.parse(cached)); - }, 3000); + this._openProject(JSON.parse(cached)); } setInterval(() => { @@ -124,7 +122,7 @@ export class EditorAction { ); } - private _bindOperations() { + private _bindActions() { this.saveGeoJSON = this.saveGeoJSON.bind(this); this.createRectangle = this.createRectangle.bind(this); this.createPolygon = this.createPolygon.bind(this); diff --git a/src/store/reducers/map/index.ts b/src/store/reducers/map/index.ts index 0461a5e..82a77d1 100644 --- a/src/store/reducers/map/index.ts +++ b/src/store/reducers/map/index.ts @@ -7,7 +7,6 @@ export function createOverlay(state = initState, payload: OverlayTypes) { return produce(state, (draft) => { draft.status = Status.CreateOverlay; draft.overlayType = payload; - console.log(123); }); }