|
@@ -2,9 +2,10 @@ import { InfoFilled, SuccessFilled } from "@element-plus/icons-vue";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import { markRaw } from "vue";
|
|
|
|
|
|
-export const confirm = (msg: string) =>
|
|
|
+export const confirm = (msg: string, okText = "确定") =>
|
|
|
ElMessageBox.confirm(msg, "系统提示", {
|
|
|
type: "warning",
|
|
|
+ confirmButtonText: okText,
|
|
|
// icon: markRaw(InfoFilled),
|
|
|
});
|
|
|
export const alert = (msg: string) =>
|