This commit is contained in:
parent
2c84ce91c2
commit
fa6e16d8af
|
|
@ -16,7 +16,6 @@ export const realNameLoginApi = (data) => {
|
||||||
return realNameHttp({
|
return realNameHttp({
|
||||||
url: `/login?username=${data.username}&password=${data.password}`,
|
url: `/login?username=${data.username}&password=${data.password}`,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
// data,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,13 @@ export const createHttpClient = ({ baseURL, clientTag, tokenSelector }) => {
|
||||||
options.url = baseURL + options.url
|
options.url = baseURL + options.url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 当实名制请求接口 并且POST请求时 把 data 给个空对象 否则后台网关报错
|
||||||
|
if (clientTag === 'realNameHttp' && options.method.toUpperCase() === 'POST') {
|
||||||
|
options.data = {}
|
||||||
|
}
|
||||||
|
|
||||||
options.timeout = 60000
|
options.timeout = 60000
|
||||||
// options[Content - Type] = ''
|
|
||||||
options.header = {
|
options.header = {
|
||||||
...options.header,
|
...options.header,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue