This commit is contained in:
Putoo
2026-04-28 16:17:19 +08:00
parent 2996fa712c
commit 29b76bab65
5 changed files with 37 additions and 30 deletions

View File

@@ -8,12 +8,12 @@ export class MessageExtend {
}
// 提示弹窗
static ShowDialog(message: string, title?: string) {
static ShowDialog(title: string, message: string) {
showDialog({ title: title, message: message })
}
// 确认提示弹窗
static Dialog(title: string, message: string, onConfirm?: () => void, onCancel?: () => void, confirmButtonText?: string) {
static ShowConfirmDialog(title: string, message: string, onConfirm?: () => void, onCancel?: () => void, confirmButtonText?: string) {
showConfirmDialog({
title: title,
message: message,
@@ -33,7 +33,7 @@ export class MessageExtend {
showSuccessToast(text)
} else if (type == 'fail') {
showFailToast(text)
} else {
} else {
console.log(text);
showToast(text)
}