在vue应用部署到nginx时,遇到刷新找不到页面或者直接输入路径找不到页面 vue-router官方给出的解决方法如下 location / { try_files $uri $uri/ /index.html; }