You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_util.js 174B

2 years ago
12345678910
  1. import Mock from 'mockjs'
  2. export function resultSuccess(data, { message = 'ok' } = {}) {
  3. return Mock.mock({
  4. code: 0,
  5. data,
  6. message,
  7. type: 'success'
  8. })
  9. }