login.js 240 B

12345678910111213
  1. import request from '@/utils/axios'
  2. export function loginByUsername(username, password) {
  3. const data = {
  4. username,
  5. password
  6. }
  7. return request({
  8. url: '/login',
  9. method: 'post',
  10. data
  11. })
  12. }