update at 2026-02-11 18:26:06

This commit is contained in:
douboer
2026-02-11 18:26:06 +08:00
parent 91fa46bd0c
commit 22685a412b

View File

@@ -137,8 +137,9 @@ server {
} }
# Web SPA 路由回退(刷新任意前端路径时返回 index.html # Web SPA 路由回退(刷新任意前端路径时返回 index.html
# 不使用 $uri/,避免根路径 "/" 命中目录后触发 403。
location / { location / {
try_files $uri $uri/ /frontend/dist/index.html; try_files /frontend/dist$uri /frontend/dist/index.html;
} }
# 禁止访问隐藏文件 # 禁止访问隐藏文件