fix(接口测试): 修复mock面板点击请求体变量没反应的问题

--bug=1017952 --user=宋天阳 【接口测试】mock - 后置脚本,点击 “请求体变量” 模板没有反应
https://www.tapd.cn/55049933/s/1260581
This commit is contained in:
song-tianyang 2022-10-13 15:27:45 +08:00 committed by 建国
parent ed834c5bbb
commit 82bafb651e
2 changed files with 3 additions and 2 deletions

View File

@ -4,8 +4,7 @@
<ms-table-header :condition.sync="condition"
@search="initTableData"
:title="$t('test_track.plan.test_plan')"
@create="testPlanCreate"
:create-tip="$t('test_track.plan.create_plan')"
:show-create="false"
>
</ms-table-header>
</template>

View File

@ -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":