安装babel-polyfill npm install -D babel-polyfill 在入口文件(main.js)添加 import 'babel-polyfill' 执行命令 npm run dev //或npm run build