vue项目接口请求拦截、响应拦截【接口请求全局封装】

/* ------------------------------------- 请求全局封装 ------------------------------------- */
import axios from 'axios'
import qs from 'qs'
import cookie from 'js-cookie'  //使用文档:https://www.toutiao.com/i6801506489014944269/?tt_from=weixin&utm_campaign=client_share&wxshare_count=1×tamp=1592666186&app=news_article&utm_source=weixin&utm_medium=toutiao_android&req_id=20200620231626010016026082135083D6&group_id=6801506489014944269


axios.defaults.baseURL 

你可能感兴趣的:(前端JS框架:Vue)