VueRouter history模式在Nginx下刷新404

打开 nginx.conf
location / {
     root   html/dist;
     index  index.html;
     try_files $uri $uri/ /; #加上这一行
 }

  

原文地址:https://www.cnblogs.com/-wei/p/13045296.html