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