摘要:
页面vue文件中请求方法uni.request({ //获取信息 url: getApp().globalData.https + '/api.php/Index/index', data: {}, method: 'POST', header: getApp().globalData.header 阅读全文
posted @ 2020-09-22 14:59
耳机里听雨
阅读(1363)
评论(0)
推荐(0)
摘要:
封装uni.request()接口的 util/api.js文件: // 二次封装请求接口 const BASE_URL = 'http://localhost:8082' export const myRequest = (options) => { return new Promise((res 阅读全文
posted @ 2020-09-22 14:46
耳机里听雨
阅读(349)
评论(0)
推荐(0)