showToast.js 139 B

12345678910
  1. export default (({
  2. type = 'none',
  3. content = '操作失败'
  4. }) => {
  5. my.showToast({
  6. type,
  7. content,
  8. duration: 1500
  9. });
  10. });