docs: fix alert demo in docs

pull/65/MERGE
Netfan 2025-04-02 20:34:38 +08:00 committed by YunaiV
parent e0cfe4a4b1
commit 5390070880
1 changed files with 5 additions and 2 deletions

View File

@ -20,8 +20,11 @@ function showIconConfirm() {
function showAsyncConfirm() { function showAsyncConfirm() {
confirm({ confirm({
beforeClose() { beforeClose({ isConfirm }) {
if (isConfirm) {
// false
return new Promise((resolve) => setTimeout(resolve, 2000)); return new Promise((resolve) => setTimeout(resolve, 2000));
}
}, },
content: 'This is an alert message with async confirm', content: 'This is an alert message with async confirm',
icon: 'success', icon: 'success',