一、安装依赖插件包 npm install axios --save 在命令提示符中进行安装; 二、全局引入 在项目中的main.js中引用 import axios from 'axios'; 也可以在需要用到的页面单独引入