1.在vue.config.js文件中的module.exports设置 publicPath: ‘./’
2.还不行的话路由可能是history模式,改为hash模式
打包后dist中的index文件为空白
最新推荐文章于 2024-03-29 15:02:02 发布
1.在vue.config.js文件中的module.exports设置 publicPath: ‘./’
2.还不行的话路由可能是history模式,改为hash模式