Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2025-01-07 14:14:42 +00:00
commit 47c15ee633

View File

@ -205,6 +205,12 @@ export class PluginMultiAppManagerServer extends Plugin {
});
}
async beforeEnable() {
if (this.app.name !== 'main') {
throw new Error('@nocobase/plugin-multi-app-manager can only be enabled in the main app');
}
}
async load() {
await this.importCollections(path.resolve(__dirname, 'collections'));