RuoYi
2026-04-16 1002b36c0a698c794320d1544c464c13b303e53c
ruoyi-ui/src/api/login.js
@@ -4,6 +4,10 @@
export function login(username, password, code, uuid) {
  return request({
    url: '/auth/login',
    headers: {
      isToken: false,
      repeatSubmit: false
    },
    method: 'post',
    data: { username, password, code, uuid }
  })
@@ -18,6 +22,15 @@
    },
    method: 'post',
    data: data
  })
}
// 解锁屏幕
export function unlockScreen(password) {
  return request({
    url: '/auth/unlockscreen',
    method: 'post',
    data: { password }
  })
}
@@ -49,6 +62,10 @@
export function getCodeImg() {
  return request({
    url: '/code',
    method: 'get'
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}