fix(plugin-workflow-dynamic-calculation): fix missed component (#3247)

This commit is contained in:
Junyi 2023-12-22 15:01:11 +08:00 committed by GitHub
parent 3e99ad1483
commit 3b5240cc0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
});
}
} }