From 9a4fad56ba9aabcff108d14eec6b5c805ce6d420 Mon Sep 17 00:00:00 2001 From: ChenX Date: Fri, 30 Oct 2020 21:35:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96:=E9=81=BF=E5=85=8D=E6=9D=BF?= =?UTF-8?q?=E8=BE=B9=E7=BC=96=E8=BE=91=E9=87=8D=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Store/RightPanelStore/BoardEdgesEditor.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/UI/Store/RightPanelStore/BoardEdgesEditor.ts b/src/UI/Store/RightPanelStore/BoardEdgesEditor.ts index 6a5aac769..e5675903f 100644 --- a/src/UI/Store/RightPanelStore/BoardEdgesEditor.ts +++ b/src/UI/Store/RightPanelStore/BoardEdgesEditor.ts @@ -62,8 +62,11 @@ export class BoardEdgesEditor async EndEditor(cancel = false) { - if (!this._editoring) - return; + if (!this._editoring) return; + + //马上标记为否,避免重入 + this._editoring = false; + app.Viewer.CameraCtrl.ReadFile(this._cameraFiler); this.ParseData(); await app.Editor.ModalManage.EndExecingCmd(); @@ -73,7 +76,6 @@ export class BoardEdgesEditor AppToaster.clear(); this._brMap.clear(); - this._editoring = false; this._cameraFiler = undefined; app.Editor.MaskManage.Clear();