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, }); }