登录加入验证码

This commit is contained in:
zhengjie
2019-06-10 16:55:16 +08:00
parent 66bec88af4
commit 963e854c71
3 changed files with 48 additions and 8 deletions

View File

@@ -1,12 +1,14 @@
import request from '@/utils/request'
export function login(username, password) {
export function login(username, password, code, uuid) {
return request({
url: 'auth/login',
method: 'post',
data: {
username,
password
password,
code,
uuid
}
})
}
@@ -17,3 +19,10 @@ export function getInfo() {
method: 'get'
})
}
export function getCodeImg() {
return request({
url: 'auth/vCode',
method: 'get'
})
}