From 54dc1d392d9d9558b5dc09c7197b0430b5e84fb1 Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Thu, 25 Sep 2025 21:44:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=97=B6?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5=E6=9C=AA=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/config.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/core/config.py b/app/core/config.py index 8e64e7b..db6f0e5 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -882,6 +882,13 @@ class AppConfig(GlobalConfig): "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") script_dict[GeneralConfig.name] = str(uid) await sc.load(general_config)