完善项目

This commit is contained in:
xuqiuyun
2025-09-28 17:58:43 +08:00
parent ec3f472641
commit 5b615473e0
59 changed files with 5428 additions and 593 deletions

View File

@@ -19,13 +19,18 @@ server {
access_log off;
}
# 处理Vue Router的history模式
location / {
try_files $uri $uri/ /index.html;
# 处理Vue Router的history模式 - 支持/farm/路径
location /farm/ {
try_files $uri $uri/ /farm/index.html;
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires "0";
}
# 根路径重定向到/farm/
location = / {
return 301 /farm/;
}
# API代理到后端服务
location /api/ {