From 7d6fa61ae362e3f472a69f2d46e305a82d8634ea Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Fri, 23 Apr 2021 15:02:51 +0800 Subject: [PATCH] 增加筛选组件容错 --- 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