mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-06 05:59:25 +08:00
chore: throw error when enable multi-app-manager in sub app (#6005)
This commit is contained in:
parent
2b1614d99b
commit
cd2418f3fa
@ -173,6 +173,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() {
|
async load() {
|
||||||
await this.importCollections(path.resolve(__dirname, 'collections'));
|
await this.importCollections(path.resolve(__dirname, 'collections'));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user