diff --git a/nginx.conf b/nginx.conf index 1e038820..590f94bf 100644 --- a/nginx.conf +++ b/nginx.conf @@ -29,8 +29,8 @@ http { # 主目录 expires off; add_header Cache-Control "no-cache, no-store, must-revalidate"; - index index.html; root /app/public; + try_files $uri $uri/ /index.html; } location /assets {