feat: improve plugin-multi-apps

This commit is contained in:
chenos 2021-10-08 23:14:55 +08:00
parent 4ab7c71f49
commit 996f752007

View File

@ -151,13 +151,32 @@ export default {
type: 'string',
name: 'title',
interface: 'string',
unique: true,
uiSchema: {
type: 'string',
title: '应用名称',
'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',
name: 'status',
@ -210,6 +229,7 @@ export default {
this.app['apps'].set(name, app);
model.set('status', 'running');
await model.save({ hooks: false });
await this.app.db.emitAsync('applications.afterInit', model);
})();
});
this.app