mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
a445b51a88
@ -39,6 +39,10 @@ class SubAppPlugin extends Plugin {
|
||||
subApp.db.on('beforeDefineCollection', (options) => {
|
||||
const name = options.name;
|
||||
|
||||
if (name === 'roles') {
|
||||
options.loadedFromCollectionManager = true;
|
||||
}
|
||||
|
||||
// 共享的Collection指向主应用的 系统schema
|
||||
if (sharedCollections.includes(name)) {
|
||||
options.schema = mainApp.db.options.schema || 'public';
|
||||
|
Loading…
x
Reference in New Issue
Block a user