Commit 464ba6cd by 肖亮

feat:更新修改昵称

parent d1e314af
......@@ -24,7 +24,6 @@ const errorProcess = (resp, reject, errorToast) => {
const resData = resp.data || {}
let message = resData.message || resData.msg || resp.statusText
const status = resData.stats || resp.status
console.log('resData', resData);
if (ERROR_CODE_MAP[status] && ERROR_CODE_MAP[status].message) {
message = ERROR_CODE_MAP[status].message
}
......@@ -94,10 +93,6 @@ export const $request = {
method,
headers,
}
console.log('method', method);
console.log('headers', headers);
console.log('body', body);
console.log('url', url);
if (method === 'POST') {
fetchConfig.body = body
}
......@@ -107,11 +102,9 @@ export const $request = {
if (res.ok) {
return res.json()
}
console.log('res1', res);
errorProcess(res, reject, errorToast)
})
.then(json => {
console.log('json', json);
responseProcess(json, resolve, reject, isOutRequest, errorToast)
})
.catch(e => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment