VueRouter history模式在Nginx下刷新404 打开 nginx.conf location / { root html/dist; index index.html; try_files $uri $uri/ /; #加上这一行 }