This commit is contained in:
Ls
2026-04-28 18:01:15 +08:00
5 changed files with 36 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,
@@ -58,7 +58,6 @@ export class MessageExtend {
} else if (type == 'fail') {
showFailToast(text)
} else {
console.log(text)
showToast(text)
}
}