增加toast方法

This commit is contained in:
TOP糯米 2023-02-23 00:03:22 +08:00
parent f7cbc78f3e
commit 646b223277
1 changed files with 8 additions and 0 deletions

View File

@ -163,6 +163,13 @@ function toPage(url, options) {
}); });
} }
function toast(title, options) {
uni.showToast({
...{ title: title, icon: "none" },
...options
});
}
export default { export default {
time, time,
datetime, datetime,
@ -174,4 +181,5 @@ export default {
px2rpx, px2rpx,
rpx2px, rpx2px,
toPage, toPage,
toast,
} }