vue-cli项目在IE下运行,会在钩子函数出现 ReferenceError: “Promise”未定义
1.安装最新的web-pack-server 命令行
npm install --save-dev webpack-server
2.安装Babel Polyfill
npm install --save babel-polyfill
2.1在webpack.base.conf.js文件引入babel-polyfill
require("babel-polyfill")
2.2在main.js文件引入babel-polyfill
import "babel-polyfill";
3.运行vue-cli项目
npm run dev