基于uni.app封装接口请求,含请求拦截器响应拦截器 一、创建request.js 文件(api文件夹=>request.js) //配置基础地址constBASE_URL='xxx'//默认请求头constacquiesceContenttype='application/x-www-form-urlencoded'exportdefault{config:{// 请求拦截器beforeRequest(options={}){// console.log('请求拦截器', opti...