Commit 464ba6cd by 肖亮

feat:更新修改昵称

parent d1e314af
...@@ -24,7 +24,6 @@ const errorProcess = (resp, reject, errorToast) => { ...@@ -24,7 +24,6 @@ const errorProcess = (resp, reject, errorToast) => {
const resData = resp.data || {} const resData = resp.data || {}
let message = resData.message || resData.msg || resp.statusText let message = resData.message || resData.msg || resp.statusText
const status = resData.stats || resp.status const status = resData.stats || resp.status
console.log('resData', resData);
if (ERROR_CODE_MAP[status] && ERROR_CODE_MAP[status].message) { if (ERROR_CODE_MAP[status] && ERROR_CODE_MAP[status].message) {
message = ERROR_CODE_MAP[status].message message = ERROR_CODE_MAP[status].message
} }
...@@ -94,10 +93,6 @@ export const $request = { ...@@ -94,10 +93,6 @@ export const $request = {
method, method,
headers, headers,
} }
console.log('method', method);
console.log('headers', headers);
console.log('body', body);
console.log('url', url);
if (method === 'POST') { if (method === 'POST') {
fetchConfig.body = body fetchConfig.body = body
} }
...@@ -107,11 +102,9 @@ export const $request = { ...@@ -107,11 +102,9 @@ export const $request = {
if (res.ok) { if (res.ok) {
return res.json() return res.json()
} }
console.log('res1', res);
errorProcess(res, reject, errorToast) errorProcess(res, reject, errorToast)
}) })
.then(json => { .then(json => {
console.log('json', json);
responseProcess(json, resolve, reject, isOutRequest, errorToast) responseProcess(json, resolve, reject, isOutRequest, errorToast)
}) })
.catch(e => { .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