Merge remote-tracking branch 'origin/main'

This commit is contained in:
jxxghp
2024-05-14 10:08:15 +08:00
3 changed files with 4 additions and 1 deletions

View File

@ -33,6 +33,8 @@ class Settings(BaseSettings):
DEBUG: bool = False
# 是否开发模式
DEV: bool = False
# 是否开启插件热加载
PLUGIN_AUTO_RELOAD: bool = False
# 配置文件目录
CONFIG_DIR: Optional[str] = None
# 超级管理员

View File

@ -97,7 +97,7 @@ class PluginManager(metaclass=Singleton):
self.pluginhelper = PluginHelper()
self.systemconfig = SystemConfigOper()
# 开发者模式监测插件修改
if settings.DEV:
if settings.DEV or settings.PLUGIN_AUTO_RELOAD:
self.__start_monitor()
def init_config(self):