时间:2021-07-01 10:21:17 帮助过:19人阅读
vue打包项目后刷新404的问题Nginx配置
server { listen 80; server_name localhost; index index.html; root /root/dist; location / { root /root/dist; try_files $uri $uri/ /index.html =404; } }
相信看了本文案例你已经掌握了方法,更多精彩请关注Gxl网其它相关文章!
推荐阅读:
vue实现滑动堆叠组件
vue build打包之后首页白屏如何处理
以上就是Vue在打包项目以后刷新显示404应该怎么处理的详细内容,更多请关注Gxl网其它相关文章!