RuoYi
2023-09-28 c4cda3f4ad62743242e60105c201e440c2f2a4d1
ruoyi-ui/src/api/login.js
@@ -4,8 +4,23 @@
export function login(username, password, code, uuid) {
  return request({
    url: '/auth/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data: { username, password, code, uuid }
  })
}
// 注册方法
export function register(data) {
  return request({
    url: '/auth/register',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}
@@ -37,6 +52,10 @@
export function getCodeImg() {
  return request({
    url: '/code',
    method: 'get'
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}