mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Dialog): fix Promise typo (#8102)
This commit is contained in:
parent
597f34b8da
commit
914b742fc9
@ -73,7 +73,7 @@ Dialog.alert({
|
||||
|
||||
```js
|
||||
const beforeClose = (action) =>
|
||||
new Promsie((resolve) => {
|
||||
new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve(action === 'confirm');
|
||||
}, 1000);
|
||||
|
@ -101,7 +101,7 @@ Dialog.alert({
|
||||
|
||||
```js
|
||||
const beforeClose = (action) =>
|
||||
new Promsie((resolve) => {
|
||||
new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
if (action === 'confirm') {
|
||||
resolve(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user