Skip to content

Commit

Permalink
refactor: 調整 Toast 訊息顯示時間及內容
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiang511 committed Mar 8, 2025
1 parent 496d798 commit 9b18e15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Toast = Swal.mixin({
popup: 'colored-toast',
},
showConfirmButton: false,
timer: 1500,
timer: 3000,
timerProgressBar: true,
})

Expand All @@ -37,6 +37,8 @@ CheckLastFile.addEventListener('change', function () {
Toast.fire({
icon: 'success',
title: '已切換為第二選項',
text: '請將您之前的 Follower file 上傳',
width: '30rem'
})
} else {
// 清空input
Expand Down

0 comments on commit 9b18e15

Please sign in to comment.