修复加载配置时的 bug

This commit is contained in:
xhy 2025-04-01 21:56:22 +08:00
parent de563198ac
commit e5456ef67c

View File

@ -41,7 +41,10 @@ def load_config(config_path: str) -> AppConfig:
chrome_config = ChromeConfig(**config_dict["chrome"])
AppCtx.g_app_config = AppConfig(
debug=config_dict["debug"], database=database_config, chrome=chrome_config
debug=config_dict["debug"],
wap_screenshot=config_dict["wap_screenshot"],
database=database_config,
chrome=chrome_config
)
return AppCtx.g_app_config