在项目的根目录下使用命令 npm install babel-polyfill --save 安装成功后再 main.js 中引用第三方包 import 'babel-polyfill' 重启vue项目即可