vue项目axios发起请求,network中返回数据和拦截器打印的response不一致
拦截器输出:
axios.interceptors.response.use(
(response) => {
console.log('response:', response)
}
)
---------分割线,以下为补充说明:------------
我发现输入在拦截器里通过JSON.stringify输出字符串,valid是没有问题的?
vue项目axios发起请求,network中返回数据和拦截器打印的response不一致
拦截器输出:
axios.interceptors.response.use(
(response) => {
console.log('response:', response)
}
)
---------分割线,以下为补充说明:------------
我发现输入在拦截器里通过JSON.stringify输出字符串,valid是没有问题的?
9 回答1.7k 阅读✓ 已解决
6 回答1.5k 阅读
3 回答1.4k 阅读✓ 已解决
4 回答1.2k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
3 回答1k 阅读
3 回答1.3k 阅读✓ 已解决
那就是你接受到数据后对数据进行过修改,所以打印的时候展示的是最新的数据