vue打包后本地打开index.html为空白页

280 阅读1分钟

解决方案:

1.将路由模式history修改为hash

微信图片_20210622094008.png

2.将assetsPublicPath:"/"修改为"./"

微信图片_20210622093900.png