![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据请求
Arbort_
做条安静的咸鱼......
展开
-
封装微信小程序请求
/** * 封装wx:request请求的工具 */ const baseUrl = ""; const https = ({ url, method, param,showLoad,other }) => { if (showLoad){ wx.showLoading({ title: '请稍等...' }); } return new P...原创 2019-08-03 13:55:46 · 235 阅读 · 0 评论 -
封装axios,统一处理错误返回
index.js: /** * 封装axios get post请求的工具(统一处理错误信息提示,只有在res.failBack为false时才能真正的获取到数据) */ import axios from "axios"; import Vue from 'vue'; import { Toast } from 'vant'; // import qs from 'qs';//序列化工具...原创 2019-08-03 14:01:08 · 1526 阅读 · 0 评论