摘要: 可在项目根目录下的 manifest.json 配置 "h5": {"devServer": { "https": false, "proxy": { "/api": {//api重定向将target放到接口前面 "target": "https://xxxxxxx.cn", //目标地址 "cha 阅读全文
posted @ 2022-03-29 22:32 上乔碧落下黄泉 阅读(333) 评论(0) 推荐(0)
摘要: (代码是来自自做项目的一部分,可自行更改完成业务) 创建utils.js文件在文件中封装wx.request方法 // 封装的微信request方法 function request(url, data = {}, method = "POST", header = "application/x-w 阅读全文
posted @ 2022-02-08 13:35 上乔碧落下黄泉 阅读(1468) 评论(0) 推荐(0)