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
|
```js
|
||||||
const beforeClose = (action) =>
|
const beforeClose = (action) =>
|
||||||
new Promsie((resolve) => {
|
new Promise((resolve) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
resolve(action === 'confirm');
|
resolve(action === 'confirm');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
@ -101,7 +101,7 @@ Dialog.alert({
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
const beforeClose = (action) =>
|
const beforeClose = (action) =>
|
||||||
new Promsie((resolve) => {
|
new Promise((resolve) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (action === 'confirm') {
|
if (action === 'confirm') {
|
||||||
resolve(true);
|
resolve(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user