1.打开报错

vue项目 npm run build后 在浏览器上打开index.html常见问题

解决方法

config文件里的index.js里,  assetsPublicPath:'/',改成   ./  重新build即可

vue项目 npm run build后 在浏览器上打开index.html常见问题

2.打开后使用的icon字体图标不显示

解决方法

build文件里的utils.js里添加 publicPath:'../../' ,重新build即可

vue项目 npm run build后 在浏览器上打开index.html常见问题

相关文章:

  • 2022-02-04
  • 2022-12-23
  • 2021-12-24
  • 2021-07-31
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案