调整路由
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user