nginx 部署 vue 报404错误
解决方法
编辑配置文件 nginx.conf
location / {
root ...
index ...
try_files $uri $uri/ /index.html; ---解决页面刷新404问题
}
正文到此结束
编辑配置文件 nginx.conf
location / {
root ...
index ...
try_files $uri $uri/ /index.html; ---解决页面刷新404问题
}