From 2c037a1d6c8b867ac341c96c1f9854e9fc5a3704 Mon Sep 17 00:00:00 2001 From: ChenX Date: Fri, 30 Oct 2020 17:12:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96:=E4=BF=9D=E5=AD=98=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=97=B6,=E6=8F=90=E7=A4=BA=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=AF=95=E8=AF=95SaveAs,=E5=B9=B6=E4=B8=94=E8=81=94=E7=B3=BB?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E4=BA=BA=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Editor/CommandMachine.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Editor/CommandMachine.ts b/src/Editor/CommandMachine.ts index ab86c2393..569f16d78 100644 --- a/src/Editor/CommandMachine.ts +++ b/src/Editor/CommandMachine.ts @@ -200,6 +200,10 @@ function ProcessingError(error: any, cmdName: string) { console.error(error.stack); ReportError(error.stack, `命令标识:${cmdName}`); + + if (cmdName === "SAVE") + AppToaster.show({ message: "图纸保存失败,或许你可以试试SaveAs(另存为)先保存!", intent: Intent.DANGER, timeout: 30000 }); + AppToaster.show({ message: "命令执行过程中发生错误!如果有问题请联系开发人员!", intent: Intent.DANGER, timeout: 15000 }); } }