请问hbuilderx,在运行-> 运行到浏览器生成的url如何设置为http,现在生成是https,导致本地开发调用不到服务端api,服务端是http,用微信小程序就可以获取到API数据。

y***@163.com
- 发布:2019-06-05 08:53
- 更新:2019-06-05 09:01
- 阅读:1221


y***@163.com (作者)
manifest.json 中 https 设置为false即可
"h5" : {
"title" : "优惠券",
"router" : {
"mode" : "history"
},
"devServer" : {
"https" : false
},
"domain" : "m.bestddd.com"
}