fix: Issues #243 change timer to 3 sec done.

This commit is contained in:
chiayin
2024-03-21 15:57:14 +08:00
parent 3cd8cbc973
commit af2e9c75e3

View File

@@ -62,7 +62,7 @@ export async function savedSuccessfully(value) {
await Swal.fire({
title: 'SAVE COMPLETE',
html: `<span class="text-primary">${value}</span> has been saved in Lucia.`,
timer: 5000, // 停留5秒後自動關閉
timer: 3000, // 停留 3 秒後自動關閉
showConfirmButton: false,
icon: 'success',
iconColor: '#0099FF',
@@ -215,7 +215,7 @@ export async function uploadFailedFirst(failureType, failureMsg, failureLoc) {
await Swal.fire({
title: 'IMPORT FAILED',
html: value,
// timer: 5000, // 停留5秒後自動關閉
timer: 3000, // 停留 3 秒後自動關閉
showConfirmButton: false,
icon: 'error',
iconColor: '#FF3366',
@@ -289,7 +289,7 @@ export async function uploadFailedSecond(detail) {
export async function uploadSuccess() {
await Swal.fire({
title: 'IMPORT COMPLETED',
timer: 5000, // 停留5秒後自動關閉
timer: 3000, // 停留 3 秒後自動關閉
showConfirmButton: false,
icon: 'success',
iconColor: '#0099FF',