mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-06-07 06:18:59 +00:00
登录/验证码请求headers不设置token
This commit is contained in:
parent
3187b1c46e
commit
e165901506
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user