

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网其它相关文章!
推荐阅读:
解决vue2.0路由不显示router-view的问题
Vue中点击组件后即可关闭组件的实现方法
