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.

15 lines
259 B

  1. import http from '../http.js'
  2. const BASE_PREFIX = '/test/login'
  3. class Login {
  4. constructor() {
  5. this.api = {
  6. login: BASE_PREFIX + '/loign'
  7. }
  8. }
  9. login(data) {
  10. return http.post(this.api.login, data).then(r => r.data)
  11. }
  12. }