解决方案
nginx.conf中配置修改下,如下所示:
location / {
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
nginx.conf中配置修改下,如下所示:
location / {
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
转载于:https://my.oschina.net/linx/blog/3077028