调整路由

This commit is contained in:
liuwei
2025-04-18 13:42:55 +08:00
parent 88265cb90b
commit 1ca37d6f31

View File

@@ -88,6 +88,9 @@ class DashboardServer:
# 禁用模板缓存使修改HTML文件后立即生效
app.config['TEMPLATES_AUTO_RELOAD'] = True
# 将dashboard_server实例设置为app的属性
app.dashboard_server = self
# 配置静态文件访问
static_folder = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'static')