vue项目运行后,在IE浏览器打开,页面为空白

解决方案:

一、首先安装babel-polyfill

1
npm install --save babel-polyfill

二、在main.js里引入



1
import 'babel-polyfill'

三、在首页index.html中添加

1
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

四、配置项目文件


build中的webpack.base.conf.js修改如下配置

1
2
3
entry:{
app:['babel-polyfill','./src/main.js']
}

vue项目运行后,在IE浏览器打开,页面为空白

https://blueskyadd.github.io/2020/07/15/vue/

Posted on

2020-07-15

Updated on

2021-06-02

Licensed under

Kommentare

:D 一言句子获取中...

Loading...Wait a Minute!