HTTP 服务端需要进行配置,将页面请求全部重定向到 index.html

nginx 配置:

location / {
  try_files $uri $uri/ /index.html;
}