refactor: 所有的 json 加载统一到启动阶段中

This commit is contained in:
RockChinQ
2024-03-16 15:41:59 +08:00
parent 98bebfddaa
commit 302d86056d
7 changed files with 29 additions and 19 deletions

View File

@@ -16,10 +16,7 @@ class SettingManager:
self.ap = ap
async def initialize(self):
self.settings = await cfg_mgr.load_json_config(
'plugins/plugins.json',
'templates/plugin-settings.json'
)
self.settings = self.ap.plugin_setting_meta
async def sync_setting(
self,