mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +08:00
fix(plugin-workflow-dynamic-calculation): fix missed component (#3247)
This commit is contained in:
parent
3e99ad1483
commit
3b5240cc0a
@ -15,14 +15,11 @@ export default class extends Plugin {
|
|||||||
// You can get and modify the app instance here
|
// You can get and modify the app instance here
|
||||||
async load() {
|
async load() {
|
||||||
this.app.addProvider(Provider);
|
this.app.addProvider(Provider);
|
||||||
|
this.app.addComponents({
|
||||||
|
DynamicExpression,
|
||||||
|
});
|
||||||
const workflow = this.app.pm.get('workflow') as WorkflowPlugin;
|
const workflow = this.app.pm.get('workflow') as WorkflowPlugin;
|
||||||
const dynamicCalculation = new DynamicCalculation();
|
const dynamicCalculation = new DynamicCalculation();
|
||||||
workflow.instructions.register(dynamicCalculation.type, dynamicCalculation);
|
workflow.instructions.register(dynamicCalculation.type, dynamicCalculation);
|
||||||
}
|
}
|
||||||
|
|
||||||
addComponents() {
|
|
||||||
this.app.addComponents({
|
|
||||||
DynamicExpression,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user