feat: update admin navigation and customer management

This commit is contained in:
2026-08-03 15:50:24 +08:00
parent ee997ae894
commit ccced0a35e
10 changed files with 178 additions and 41 deletions
+16
View File
@@ -22,8 +22,24 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# HTML must be revalidated on every visit so a new deployment cannot keep
# referencing hashed chunks that were removed with the previous image.
location = /index.html {
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
}
# Vite assets are content-hashed and safe to cache permanently. Missing
# chunks must remain a real 404 instead of falling back to index.html.
location /assets/ {
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable" always;
}
# Vue Router 的 history 路由刷新时仍返回 index.html。
location / {
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-cache" always;
}
}