当通过网页中vue-router跳转页面的时候可以正常显示;而通过浏览器输入地址访问时nginx自然找不到这些页面了。解决办法就是在服务器nignx的配置文件中修改:
location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ /index.html; }