增加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 {
|
export default {
|
||||||
time,
|
time,
|
||||||
datetime,
|
datetime,
|
||||||
|
@ -174,4 +181,5 @@ export default {
|
||||||
px2rpx,
|
px2rpx,
|
||||||
rpx2px,
|
rpx2px,
|
||||||
toPage,
|
toPage,
|
||||||
|
toast,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue