mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 15:40:52 +00:00
docs(Dialog): fix Promise typo (#8102)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user