mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 01:48:14 +00:00
refactor: pluginsettingmanager support databse connection
This commit is contained in:
parent
3f2cff9bb9
commit
886c953d7c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user