fix(ui): 主题与脑图浅色适配、标签配色及静态资源缓存

- 浅色模式下用例脑图区域改为浅色样式
- 恢复 el-tag 按 success/warning/info 等类型的颜色
- 启动时应用主题,Home 内容区深色样式兜底
- nginx 禁止缓存 index.html,hash 静态资源长期缓存

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
qiaoxinjiu
2026-05-18 16:33:35 +08:00
parent 3b359a7fd5
commit f7cdff31ba
6 changed files with 208 additions and 7 deletions

View File

@@ -1,12 +1,24 @@
# 发版后避免浏览器长期使用旧 index 引用旧 js/css
server {
listen 80;
server_name localhost;
client_max_body_size 100m;
root /usr/share/nginx/html;
index index.html;
location = /index.html {
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" always;
add_header Pragma "no-cache" always;
}
location ^~ /static/ {
expires 1y;
add_header Cache-Control "public, immutable" always;
access_log off;
}
location /it/api/ {
proxy_pass http://172.18.0.1:5010;
proxy_set_header Host $host;