This commit is contained in:
Luk Lu
2020-05-23 21:24:13 +08:00
parent 73bd6564c6
commit ad75cd1aee
2 changed files with 76 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ module.exports = function showToast({type, icon, image, title, duration}){
}else {
// #ifndef APP-PLUS
if (!image){
image = `../static/Common.${type}.png`
image = `../static/Common.${type?type:'info'}.png`
}
uni.showToast({icon, image, title, duration})
// #endif