|
|
@ -10,6 +10,9 @@ export function login(username, password, code, uuid) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/login',
|
|
|
|
url: '/login',
|
|
|
|
|
|
|
|
headers: {
|
|
|
|
|
|
|
|
isToken: false
|
|
|
|
|
|
|
|
},
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -47,6 +50,9 @@ export function logout() {
|
|
|
|
export function getCodeImg() {
|
|
|
|
export function getCodeImg() {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: '/captchaImage',
|
|
|
|
url: '/captchaImage',
|
|
|
|
|
|
|
|
headers: {
|
|
|
|
|
|
|
|
isToken: false
|
|
|
|
|
|
|
|
},
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
timeout: 20000
|
|
|
|
timeout: 20000
|
|
|
|
})
|
|
|
|
})
|
|
|
|