在nginx.conf上配置一下即可:
server {
...
location / {
try_files $uri /index.html
}
}
若问题没有解决,可参考下面这篇文章
react-router browserHistory刷新页面404问题解决方法
在nginx.conf上配置一下即可:
server {
...
location / {
try_files $uri /index.html
}
}
若问题没有解决,可参考下面这篇文章
react-router browserHistory刷新页面404问题解决方法