This commit is contained in:
2024-03-17 14:50:20 +08:00
parent cfdc8d088c
commit 7f0f11cf14
6 changed files with 71 additions and 23 deletions

View File

@@ -27,7 +27,7 @@ export function mpUpdate() {
});
}
export function showToast(title: string, icon: 'none' | 'success' | 'loading' | 'error' | 'fail' | 'exception' | undefined, duration: number = 2000) {
export function showToast(title: string, icon: 'none' | 'success' | 'loading' | 'error' | 'fail' | 'exception' | undefined = 'none', duration: number = 2000) {
uni.showToast({
title,
icon,