mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:55:33 +00:00
feat: improve plugin-multi-apps
This commit is contained in:
parent
4ab7c71f49
commit
996f752007
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user