参考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上
}
参考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上
}