<h1>
1.在index.html中以CDN的方式引入    
</h1>
<p>
引入的时候注意:要先在引入之前引入VUE否则会报undedined prototype的错误
</p>
<h1>
2.webpack.base.conf.js文件的module.exports={}中加入过滤
externals: {
    'vue': 'Vue',
    'element-ui': 'ELEMENT',
    'element-ui': 'element-ui',
    'axios': 'axios',
    'vue': 'Vue',
    'vue-router': 'VueRouter',
    'axios': 'axios',
    'element-ui': 'ELEMENT',
    'i18n': 'i18n',
 }
</h1>

 

3.elementUI以CDN方式引入的时候,必须要先以CDN的方式引入VUE,否则会报undefined prototype的错误

相关文章:

  • 2023-02-21
  • 2021-05-08
  • 2021-11-07
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2021-05-09
  • 2021-06-16
  • 2021-07-10
  • 2022-03-10
  • 2021-10-21
  • 2022-12-23
相关资源
相似解决方案