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