vue兼容谷歌48版本

控制台打开报错的文件,定位到相应的插件;

在vue.config.js中配置:

'transpileDependencies': [/[/\\]node_modules[/\\](.+?)?exceljs(.*)/, /[/\\]node_modules[/\\](.+?)?crypto-js(.*)/]

css3不兼容:

npm install css-vars-ponyfill mutationobserver-shim —save

main.js中配置:

import 'mutationobserver-shim'
import cssVars from 'css-vars-ponyfill'
cssVars({
watch: true
})

猜你喜欢

转载自blog.csdn.net/shidouyu/article/details/123066520