微调
这个提交包含在:
父节点
bd7ec970f3
当前提交
4b8a70ac7e
@ -115,6 +115,7 @@ export class ToolsHelper {
|
||||
|
||||
|
||||
private static oTime: number = 0
|
||||
|
||||
/**
|
||||
* 双击退出
|
||||
* @param msg
|
||||
@ -141,19 +142,22 @@ export class ToolsHelper {
|
||||
* 弹出Alert弹窗
|
||||
* @param options
|
||||
*/
|
||||
static showAlertDialog(options: AlertOptions) {
|
||||
static showAlertDialog(
|
||||
title?: string,
|
||||
msg?: string,
|
||||
action?: Btn) {
|
||||
try {
|
||||
promptAction.showDialog({
|
||||
alignment: 1,
|
||||
title: options.title,
|
||||
message: options.msg,
|
||||
title: title,
|
||||
message: msg,
|
||||
buttons: [{
|
||||
text: options.action.text ?? "确定",
|
||||
color: options.action.color ?? "#000000",
|
||||
text: action?.text ?? "确定",
|
||||
color: action?.color ?? "#000000",
|
||||
}]
|
||||
})
|
||||
.then(() => {
|
||||
options.action.onClick()
|
||||
action?.onClick()
|
||||
})
|
||||
.catch((err: Error) => {
|
||||
ToolsHelper.showMessage(err.message)
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户