diff --git a/api-test/frontend/src/business/automation/scenario/testplan/TestPlanList.vue b/api-test/frontend/src/business/automation/scenario/testplan/TestPlanList.vue index 62fb8590a4..f99ca2b3ee 100644 --- a/api-test/frontend/src/business/automation/scenario/testplan/TestPlanList.vue +++ b/api-test/frontend/src/business/automation/scenario/testplan/TestPlanList.vue @@ -4,8 +4,7 @@ diff --git a/api-test/frontend/src/business/definition/components/mock/Components/MockApiScriptEditor.vue b/api-test/frontend/src/business/definition/components/mock/Components/MockApiScriptEditor.vue index fa305b1d53..430d43c8ce 100644 --- a/api-test/frontend/src/business/definition/components/mock/Components/MockApiScriptEditor.vue +++ b/api-test/frontend/src/business/definition/components/mock/Components/MockApiScriptEditor.vue @@ -194,6 +194,8 @@ export default { case "body": if (laguanges === "python") { returnScript = 'param=vars["body.${param}"]'; + } else { + returnScript = 'var param=vars.get("body.${param}")'; } break; case "bodyRaw":