nginx部署vue history模式项目页面刷新报404问题
nginx部署vue history模式项目页面刷新报404问题
解决方案:
在nginx配置种添加以下代码:
try_files $uri $uri/ /index.html
示例:
location / {
root dist;
try_files $uri $uri/ /index.html
}
钻研不易,转载请注明出处。。。。。。
nginx部署vue history模式项目页面刷新报404问题
解决方案:
在nginx配置种添加以下代码:
try_files $uri $uri/ /index.html
示例:
location / {
root dist;
try_files $uri $uri/ /index.html
}
钻研不易,转载请注明出处。。。。。。