|
|
@@ -234,14 +234,11 @@ export default {
|
|
|
method: 'POST',
|
|
|
headers: this.headers,
|
|
|
body: form
|
|
|
- }).then(response => {
|
|
|
- const { status, data = {} } = response
|
|
|
- console.log(status, data)
|
|
|
- console.log(response)
|
|
|
- if (status >= 200 && status <= 401) {
|
|
|
- this.updateAvatar(data.data.filePath)
|
|
|
- }
|
|
|
})
|
|
|
+ .then(response => response.json())
|
|
|
+ .then(body => {
|
|
|
+ console.log(JSON.stringify(body))
|
|
|
+ })
|
|
|
}, 'image/png')
|
|
|
}
|
|
|
},
|