VUE的history模式下刷新报404错误 nginx 设置404页面重定向到index.html页面 tomcat 在tomcat的conf目录下的web.xml中添加404页面重定向到index.html