From 279052b01a3faf0832ed7bc88d830413abec04a9 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 9 Jun 2025 17:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/dashboard/server.py b/admin/dashboard/server.py index 333a588..335a191 100644 --- a/admin/dashboard/server.py +++ b/admin/dashboard/server.py @@ -88,8 +88,8 @@ class DashboardServer: template_folder = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates') app = Flask(__name__, template_folder=template_folder) app.secret_key = "stats_dashboard_secret_key" - # 禁用模板缓存,使修改HTML文件后立即生效 - app.config['TEMPLATES_AUTO_RELOAD'] = True + # 禁用模板缓存,使修改HTML文件后立即生效 False =重启才生效 + app.config['TEMPLATES_AUTO_RELOAD'] = False # 设置Werkzeug日志级别为DEBUG import logging