|
|
|
@ -4,6 +4,9 @@ import request from '@/utils/request'
|
|
|
|
|
export function login(username, password, code, uuid) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/auth/login',
|
|
|
|
|
headers: {
|
|
|
|
|
isToken: false
|
|
|
|
|
},
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: { username, password, code, uuid }
|
|
|
|
|
})
|
|
|
|
@ -49,6 +52,9 @@ export function logout() {
|
|
|
|
|
export function getCodeImg() {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/code',
|
|
|
|
|
headers: {
|
|
|
|
|
isToken: false
|
|
|
|
|
},
|
|
|
|
|
method: 'get',
|
|
|
|
|
timeout: 20000
|
|
|
|
|
})
|
|
|
|
|