1,在所在项目安装axios npm install axios -s import axios from 'axios'; 2,在config下修改index.js文件在proxyTable里加入后端目标地址 index.js 'use strict' // Template v