新增验证码登录功能

This commit is contained in:
Jason
2023-01-18 11:30:13 +08:00
parent 6cdc2b82e1
commit 9223b88a72
5 changed files with 57 additions and 4 deletions

View File

@@ -6,6 +6,11 @@ export function login(params: Record<string, any>) {
return request.post({ url: '/system/login', params: { ...params, terminal: config.terminal } })
}
// 登录
export function loginCaptcha() {
return request.get({ url: '/system/captcha' })
}
// 退出登录
export function logout() {
return request.post({ url: '/system/logout' })