1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-12-08 22:27:34 +08:00
parent 3a3def6e96
commit 69c73c5593

View File

@ -106,7 +106,8 @@ Volcanos("user", {
return can.user.toast(can, {content: "🕑 "+content, title: title, duration: -1, progress: progress}) return can.user.toast(can, {content: "🕑 "+content, title: title, duration: -1, progress: progress})
}, },
toastFailure: function(can, content, title) { toastFailure: function(can, content, title) {
content = can.user.trans(can, content||""), content += can.user.trans(can, " failure", "失败") content = can.user.trans(can, content||"")
if (content.length < 8) { content += can.user.trans(can, " failure", "失败") }
return can.user.toast(can, {content: "❌ "+content, title: title, duration: -1}) return can.user.toast(can, {content: "❌ "+content, title: title, duration: -1})
}, },
toastSuccess: function(can, content, title, duration) { toastSuccess: function(can, content, title, duration) {