From 6338006e0f85af8d4915abfbe67696b2b17dd6ce Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Thu, 13 May 2021 21:10:19 +0800 Subject: [PATCH] Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components --- common/Tools.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/Tools.js b/common/Tools.js index 3c235cd..e1e650f 100644 --- a/common/Tools.js +++ b/common/Tools.js @@ -11,13 +11,14 @@ /** * 显示消息 * @param msg + * @param [duration=2000] */ - static toast(msg) { + static toast(msg, duration = 2000) { Taro.showToast({ title: msg, icon: 'none', mask: true, - duration: 2000, + duration, }); } -- Gitblit v1.9.1