如果在根目录则添加
try_files $uri $uri/ /index.html;
如果不在根目录则添加,格式如下
location /xxxx {
try_files $uri $uri/ /xxxx/index.html;
}
具体看情况添加