vue项目 edge和ie打开都空白,有时还会报错;
方法如下:
1、安装babel-polyfill,
npm install babel-polyfill --save
2、在main.js里引入,
import 'babel-polyfill'
一定要在最上面引入
3、vue.config.js
require('babel-polyfill')
module.exports 里添加:
transpileDependencies: [
'iview',
'axios',
]