fix: 修复后端升级配置文件时部分字段未替换的问题
This commit is contained in:
@@ -882,6 +882,13 @@ class AppConfig(GlobalConfig):
|
|||||||
"RootPath": general_config["Script"]["RootPath"],
|
"RootPath": general_config["Script"]["RootPath"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
general_config["Script"]["ConfigPathMode"] = (
|
||||||
|
"File"
|
||||||
|
if "所有文件"
|
||||||
|
in general_config["Script"]["ConfigPathMode"]
|
||||||
|
else "Folder"
|
||||||
|
)
|
||||||
|
|
||||||
uid, sc = await self.add_script("General")
|
uid, sc = await self.add_script("General")
|
||||||
script_dict[GeneralConfig.name] = str(uid)
|
script_dict[GeneralConfig.name] = str(uid)
|
||||||
await sc.load(general_config)
|
await sc.load(general_config)
|
||||||
|
|||||||
Reference in New Issue
Block a user