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