Tính năng my.confirm | Tini App đang có lỗi.
Page({
onConfirm() {
my.confirm({
title: 'Alert title',
content: 'Alert content',
confirmButtonText: 'Confirm',
cancelButtonText: 'Cancel',
success: (result) => {
my.alert({ title: `${result.confirm}` });
},
fail: (e) => {
my.alert({ title: `${e}` });
},
complete: () => {
console.log('Complete');
}
});
}
});
Đang có lỗi là: Confirm hay Cancel đều gọi function success hết!