location /szoa-web {
add_header Cache-Control no-store;
add_header Pragma no-cache;
alias /home/web/szoa-web;
index index.html index.htm;
try_files $uri $uri/ /szoa-web/index.html;
# try_files $uri $uri/ @router; # 需要指向下面的@router否则会出现vue的路由在nginx中刷新出现404
}
vue-router mode为history模式打包部署到nginx所走过的坑
最新推荐文章于 2022-12-01 15:32:46 发布