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.

18 lines
322B

  1. import Mock from 'mockjs'
  2. import { resultSuccess } from '../_util'
  3. const Random = Mock.Random
  4. const access_token = Random.string('upper', 32, 32)
  5. export default [
  6. {
  7. url: '/api-mock/login/login',
  8. timeout: 1000,
  9. method: 'post',
  10. response: () => {
  11. return resultSuccess({ access_token })
  12. }
  13. }
  14. ]