From 646b22327747ae1ded9b1d23bc1400fd7de7a3a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Thu, 23 Feb 2023 00:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0toast=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/libs/utils.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/libs/utils.js b/src/core/libs/utils.js index 8a53f99..bccadbc 100644 --- a/src/core/libs/utils.js +++ b/src/core/libs/utils.js @@ -163,6 +163,13 @@ function toPage(url, options) { }); } +function toast(title, options) { + uni.showToast({ + ...{ title: title, icon: "none" }, + ...options + }); +} + export default { time, datetime, @@ -174,4 +181,5 @@ export default { px2rpx, rpx2px, toPage, + toast, }