diff --git a/packages/core/evaluators/src/client/index.tsx b/packages/core/evaluators/src/client/index.tsx index 6079894ebf..b2902807bb 100644 --- a/packages/core/evaluators/src/client/index.tsx +++ b/packages/core/evaluators/src/client/index.tsx @@ -22,8 +22,8 @@ export interface Evaluator { export const evaluators = new Registry(); -evaluators.register('math.js', mathjs); evaluators.register('formula.js', formulajs); +evaluators.register('math.js', mathjs); evaluators.register('string', string); export function getOptions() { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/calculation.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/calculation.tsx index e083a69f43..1aec3ca660 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/calculation.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/calculation.tsx @@ -32,7 +32,7 @@ export default class extends Instruction { options: getOptions(), }, required: true, - default: 'math.js', + default: 'formula.js', }, expression: { type: 'string',