参考url : https://blog.csdn.net/weixin_34379433/article/details/91369530
配置nginx如下:
location / {
root /www/dist;
index index.html index.htm;
try_files $uri $uri/ /index.html; //映射到index.html上
}
版权声明:本文为chhnang2016原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。