1***@qq.com
1***@qq.com
  • 发布:2020-02-27 12:53
  • 更新:2020-02-27 13:53
  • 阅读:638

luch-request请求结果打印是undefined

分类:uni-app

console.log(res);
http请求在network中看着是正常的,但是这个结果打印是undefined,这是为什么?
//测试调用本地接口
http.post('/api/idea/list', {
param:{type:1}
}).then(res => {
console.log(res);
}).catch(err => {

            })
2020-02-27 12:53 负责人:无 分享
已邀请:
luch

luch

params

  • 1***@qq.com (作者)

    去掉了也不行

    2020-02-27 15:37

  • luch

    回复 1***@qq.com: 代码发详细点。拦截器。 引入,调用代码。 打印

    2020-02-27 17:16

该问题目前已经被锁定, 无法添加新回复