From a848208765fac2bec027e2f7ef0d706f537fadbd Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Sun, 23 Feb 2020 16:30:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E7=82=B9=E5=8F=96=E6=B6=88=E6=8A=A5=E9=94=99bug?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/src/editor/menu/SceneMenu.jsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ShadowEditor.Web/src/editor/menu/SceneMenu.jsx b/ShadowEditor.Web/src/editor/menu/SceneMenu.jsx index 4e77f64d..91407e03 100644 --- a/ShadowEditor.Web/src/editor/menu/SceneMenu.jsx +++ b/ShadowEditor.Web/src/editor/menu/SceneMenu.jsx @@ -85,7 +85,7 @@ class SceneMenu extends React.Component { queryBeforeCreateScene() { const editor = app.editor; - return new Promise((resolve, reject) => { + return new Promise(resolve => { if (editor.sceneID === null) { resolve(); } else { @@ -94,9 +94,6 @@ class SceneMenu extends React.Component { content: _t('All unsaved data will be lost. Are you sure?'), onOK: () => { resolve(); - }, - onCancel: () => { - reject(); } }); }