为什么Vue项目运行在IE9中能显示,在IE10/11中白屏?

新手上路,请多包涵

IE9能显示虽然样式是乱的,IE10/11完全是白屏。没有报错,网上搜索说白屏是ES6的问题,但是Vue脚手架预装了babel并且ie9为什么能运行呢?

package.json:

{
  "name": "test",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build"
  },
  "dependencies": {
    "core-js": "^3.6.5",
    "vue": "^2.6.11",
    "axios": "^0.20.0",
    "vant": "^2.10.8",
    "vue-router": "^3.2.0",
    "vuex": "^3.4.0"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "vue-template-compiler": "^2.6.11"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not dead"
  ]
}

babel.config.js:

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ]
}

没有其他配置文件了

阅读 2.1k
1 个回答
新手上路,请多包涵

已经解决,是flex布局的问题

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏