mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
修复创建场景点取消报错bug。
This commit is contained in:
parent
a92a6d192c
commit
a848208765
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user