diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/index.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/index.ts index 89809d6b83..40d8104b6e 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/index.ts @@ -15,14 +15,11 @@ export default class extends Plugin { // You can get and modify the app instance here async load() { this.app.addProvider(Provider); + this.app.addComponents({ + DynamicExpression, + }); const workflow = this.app.pm.get('workflow') as WorkflowPlugin; const dynamicCalculation = new DynamicCalculation(); workflow.instructions.register(dynamicCalculation.type, dynamicCalculation); } - - addComponents() { - this.app.addComponents({ - DynamicExpression, - }); - } }