vue-element-admin项目打包后,iconfont图标出现乱码
使用vueelementadmin或者vueelementtemplate开发的项目,打包到线上,就出现了图标乱码,f12后能看到icon元素为.eliconclose:before{content:"□"}的情况(如下)
使用vueelementadmin或者vueelementtemplate开发的项目,打包到线上,就出现了图标乱码,f12后能看到icon元素为.eliconclose:before{content:"□"}的情况(如下)
1.安装:npminstallvuei18n2.在main.js引入i18n,注册,并设置element语言importi18nfrom'./lang'//setElementUIlang,兼容elementui写法Vue.use(ElementUI,{i18n:(key,value)i18n.t(key,v