Falko Schindler 2 年之前
父节点
当前提交
35798be15d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/nicegui.py

+ 1 - 1
nicegui/nicegui.py

@@ -30,7 +30,7 @@ async def startup():
     jp.Route("/{path:path}", error404, last=True)
     for route, page_builder in globals.page_builders.items():
         if page_builder.shared:
-            page_builder.build()
+            await page_builder.build()
         jp.Route(route, page_builder.route_function)
     globals.tasks.extend(create_task(t.coro, name=t.name) for t in Timer.prepared_coroutines)
     Timer.prepared_coroutines.clear()