From 671092026c5645aa8e9c55d135ad030ddc59b507 Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Wed, 17 Aug 2022 17:08:13 +0800 Subject: [PATCH] misc improvements --- unitool.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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