(1)在vue.config中配置 transpileDependencies: [‘iview’]會導致運行也有問題‘’【xxx】
(2)在babel.config.js中加入
module.exports = { presets: [['@vue/app', { useBuiltIns: 'entry' }]] }
在main中加入
import'@babel/polyfill';
啊啊啊啊啊啊在我使用第一種方法的時候找到了這篇希望對你有用呀
https://www.jianshu.com/p/4bae61f2b7bc