function toast(msg) { uni.showToast({ icon: 'none', title: msg }) } toast.success = function(msg) { uni.showToast({ icon: 'success', title: msg }) } toast.fail = function(msg) { uni.showToast({ icon: "none", title: msg }) } export default toast