解决刷新时样式失效问题。

This commit is contained in:
liuwei
2025-06-09 18:07:48 +08:00
parent 674b148bf1
commit 705c3169c4
2 changed files with 3 additions and 10 deletions

View File

@@ -89,7 +89,7 @@ class DashboardServer:
app = Flask(__name__, template_folder=template_folder)
app.secret_key = "stats_dashboard_secret_key"
# 禁用模板缓存使修改HTML文件后立即生效 False =重启才生效
app.config['TEMPLATES_AUTO_RELOAD'] = False
app.config['TEMPLATES_AUTO_RELOAD'] = True
# 设置Werkzeug日志级别为DEBUG
import logging