This commit is contained in:
BianLzhaoMin 2025-12-16 17:25:10 +08:00
parent 2c84ce91c2
commit fa6e16d8af
2 changed files with 6 additions and 2 deletions

View File

@ -16,7 +16,6 @@ export const realNameLoginApi = (data) => {
return realNameHttp({
url: `/login?username=${data.username}&password=${data.password}`,
method: 'POST',
// data,
})
}

View File

@ -31,8 +31,13 @@ export const createHttpClient = ({ baseURL, clientTag, tokenSelector }) => {
options.url = baseURL + options.url
}
// 当实名制请求接口 并且POST请求时 把 data 给个空对象 否则后台网关报错
if (clientTag === 'realNameHttp' && options.method.toUpperCase() === 'POST') {
options.data = {}
}
options.timeout = 60000
// options[Content - Type] = ''
options.header = {
...options.header,
}