patrick-wechat icon indicating copy to clipboard operation
patrick-wechat copied to clipboard

想问一下如果向后端发送请求的话代码应该在哪?

Open Gear420 opened this issue 5 years ago • 2 comments

您好...,不好意思对于taro框架不是很熟。想了解一下如何设置后端的请求url?

Gear420 avatar Dec 06 '19 07:12 Gear420

/src/api 目录用来编写对后端的请求,可以用taro.request(),我这里用的是mock的数据。 近期会开源一下问卷的后端。

kennylbj avatar Dec 06 '19 08:12 kennylbj

非常感谢!!!!!

Gear420 avatar Dec 06 '19 10:12 Gear420