fix(接口测试): 修复mock面板点击请求体变量没反应的问题
--bug=1017952 --user=宋天阳 【接口测试】mock - 后置脚本,点击 “请求体变量” 模板没有反应 https://www.tapd.cn/55049933/s/1260581
This commit is contained in:
parent
ed834c5bbb
commit
82bafb651e
|
@ -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>
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue