console.log(res);
http请求在network中看着是正常的,但是这个结果打印是undefined,这是为什么?
//测试调用本地接口
http.post('/api/idea/list', {
param:{type:1}
}).then(res => {
console.log(res);
}).catch(err => {
})
console.log(res);
http请求在network中看着是正常的,但是这个结果打印是undefined,这是为什么?
//测试调用本地接口
http.post('/api/idea/list', {
param:{type:1}
}).then(res => {
console.log(res);
}).catch(err => {
})
1***@qq.com (作者)
去掉了也不行
2020-02-27 15:37
luch
回复 1***@qq.com: 代码发详细点。拦截器。 引入,调用代码。 打印
2020-02-27 17:16