解决:安装babel-polyfill

步骤

npm安装npm install --save-dev babel-polyfill在入口文件倒入即可import 'babel-polyfill'如果也是用了官方脚手架vue-cli,还需要在webpack.config.js配置文件中做各修改,用module.exports = { entry: { app: ["babel-polyfill", "./src/main.js"] } };
替换
module.exports = { entry: { app: './src/main.js' } }