封装axios请求

一、新建request.js文件javascript 注意点:当请求头为:application/x-www-form-urlencoded; charset=utf-8须要经过引入qs来序列化数据 qs.stringify(data)vue import Vue from 'vue' import axios from 'axios' import router from '@/router'
相关文章
相关标签/搜索