no message
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -124,7 +124,7 @@ export const httpGet = params => { | ... | @@ -124,7 +124,7 @@ export const httpGet = params => { |
| 124 | }, { | 124 | }, { |
| 125 | headers, | 125 | headers, |
| 126 | opt | 126 | opt |
| 127 | }).then(res => res.data); | 127 | }).then(res => res.data.content); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | /** | 130 | /** |
| ... | @@ -150,7 +150,7 @@ export const httpPost = params => { | ... | @@ -150,7 +150,7 @@ export const httpPost = params => { |
| 150 | return axios.post(reqUrl, data, { | 150 | return axios.post(reqUrl, data, { |
| 151 | headers, | 151 | headers, |
| 152 | opt | 152 | opt |
| 153 | }).then(res => res.data); | 153 | }).then(res => res.data.content); |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | 156 | ||
| ... | @@ -174,5 +174,5 @@ export const formdata = params => { | ... | @@ -174,5 +174,5 @@ export const formdata = params => { |
| 174 | config = {} | 174 | config = {} |
| 175 | } | 175 | } |
| 176 | config.header = formDataHeaders.headers | 176 | config.header = formDataHeaders.headers |
| 177 | return axios.post(`${base}${url}`, data, config).then(res => res.data); | 177 | return axios.post(`${base}${url}`, data, config).then(res => res.data.content); |
| 178 | } | 178 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment