mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
47c15ee633
@ -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'));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user