增加toast方法
This commit is contained in:
parent
f7cbc78f3e
commit
646b223277
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue