fix:swal button
This commit is contained in:
parent
e48ad4e5f9
commit
048e593670
|
|
@ -48,7 +48,7 @@ export function successRouter(redirect: string, router?: any) {
|
|||
MySwal.fire({
|
||||
title: "Success!",
|
||||
icon: "success",
|
||||
confirmButtonColor: "#3085d6",
|
||||
confirmButtonColor: "#6642f5",
|
||||
confirmButtonText: "Ok",
|
||||
allowOutsideClick: false,
|
||||
}).then((result) => {
|
||||
|
|
@ -59,15 +59,11 @@ export function successRouter(redirect: string, router?: any) {
|
|||
}
|
||||
|
||||
export function success(title: string) {
|
||||
MySwal.fire({
|
||||
title: title || "Success!",
|
||||
Swal.fire({
|
||||
title: "Success!",
|
||||
icon: "success",
|
||||
confirmButtonColor: "#3085d6",
|
||||
confirmButtonColor: "#6642f5",
|
||||
confirmButtonText: "OK",
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -112,3 +112,10 @@ main {
|
|||
.custom-button {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
.swal2-confirm {
|
||||
background-color: #4275f5 !important;
|
||||
}
|
||||
.swal2-cancel {
|
||||
background-color: #d33 !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue