lilishop-uniapp/uview-ui/libs/function/toast.js

10 lines
147 B
JavaScript

function toast(title, duration = 1500) {
uni.showToast({
title: title,
icon: 'none',
duration: duration
})
}
export default toast