feat: improve plugin-multi-apps
This commit is contained in:
parent
4ab7c71f49
commit
996f752007
@ -151,13 +151,32 @@ export default {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
name: 'title',
|
name: 'title',
|
||||||
interface: 'string',
|
interface: 'string',
|
||||||
unique: true,
|
|
||||||
uiSchema: {
|
uiSchema: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '应用名称',
|
title: '应用名称',
|
||||||
'x-component': 'Input',
|
'x-component': 'Input',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
name: 'email',
|
||||||
|
interface: 'email',
|
||||||
|
uiSchema: {
|
||||||
|
type: 'string',
|
||||||
|
title: '邮箱',
|
||||||
|
'x-component': 'Input',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
name: 'note',
|
||||||
|
interface: 'textarea',
|
||||||
|
uiSchema: {
|
||||||
|
type: 'string',
|
||||||
|
title: '你希望用 NocoBase 来做什么',
|
||||||
|
'x-component': 'Input.TextArea',
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: 'string',
|
type: 'string',
|
||||||
name: 'status',
|
name: 'status',
|
||||||
@ -210,6 +229,7 @@ export default {
|
|||||||
this.app['apps'].set(name, app);
|
this.app['apps'].set(name, app);
|
||||||
model.set('status', 'running');
|
model.set('status', 'running');
|
||||||
await model.save({ hooks: false });
|
await model.save({ hooks: false });
|
||||||
|
await this.app.db.emitAsync('applications.afterInit', model);
|
||||||
})();
|
})();
|
||||||
});
|
});
|
||||||
this.app
|
this.app
|
||||||
|
Loading…
Reference in New Issue
Block a user