diff --git a/unitool.js b/unitool.js index bb7ea14..16d6cdd 100644 --- a/unitool.js +++ b/unitool.js @@ -452,6 +452,7 @@ export default { }) */ showToast ({ tool, type, image, title, duration = 2000, ...rest }) { + // rename to popToast? if (tool !== 'uni') { // 来自 const toast = this.thisPage()?.$refs?.toast || getApp().globalData.toast || wo.toast @@ -461,7 +462,7 @@ export default { return } else if (popup) { wo.ss.popMessage = title - wo.ss.popType = type || 'success' + wo.ss.popType = type || 'success' // success/error/warning/info wo.ss.popDuration = duration || 2000 popup.open() return