docs(Dialog): fix Promise typo (#8102)

This commit is contained in:
neverland
2021-02-08 09:59:53 +08:00
committed by GitHub
parent 597f34b8da
commit 914b742fc9
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ Dialog.alert({
```js
const beforeClose = (action) =>
new Promsie((resolve) => {
new Promise((resolve) => {
setTimeout(() => {
resolve(action === 'confirm');
}, 1000);

View File

@@ -101,7 +101,7 @@ Dialog.alert({
```js
const beforeClose = (action) =>
new Promsie((resolve) => {
new Promise((resolve) => {
setTimeout(() => {
if (action === 'confirm') {
resolve(true);