refactor: pluginsettingmanager support databse connection

This commit is contained in:
katherinehhh 2023-12-27 16:19:19 +08:00
parent 3f2cff9bb9
commit 886c953d7c

View File

@ -75,7 +75,7 @@ export class PluginSettingsManager {
add(name: string, options: PluginSettingOptions) {
const nameArr = name.split('.');
const topLevelName = nameArr[0];
this.settings[name] = { Component: Outlet, ...options, name, topLevelName };
this.settings[name] = { Component: Outlet, ...options, name, topLevelName: options.topLevelName || topLevelName };
// add children
if (nameArr.length > 1) {