时间:2021-04-25 10:11:18 | 栏目:vue | 点击:次
1、ie9+报错vuex requires a Promise polyfill in this browser.
解决如下:
npm install --save-dev babel-polyfill
或者 cnpm install babel-polyfill -D
修改 webpack.base.conf.js
将:
entry: { app: './src/main.js' }
改为:
entry: { 'babel-polyfill': 'babel-polyfill', app: './src/main.js' }