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"
|
<ms-table-header :condition.sync="condition"
|
||||||
@search="initTableData"
|
@search="initTableData"
|
||||||
:title="$t('test_track.plan.test_plan')"
|
:title="$t('test_track.plan.test_plan')"
|
||||||
@create="testPlanCreate"
|
:show-create="false"
|
||||||
:create-tip="$t('test_track.plan.create_plan')"
|
|
||||||
>
|
>
|
||||||
</ms-table-header>
|
</ms-table-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -194,6 +194,8 @@ export default {
|
||||||
case "body":
|
case "body":
|
||||||
if (laguanges === "python") {
|
if (laguanges === "python") {
|
||||||
returnScript = 'param=vars["body.${param}"]';
|
returnScript = 'param=vars["body.${param}"]';
|
||||||
|
} else {
|
||||||
|
returnScript = 'var param=vars.get("body.${param}")';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "bodyRaw":
|
case "bodyRaw":
|
||||||
|
|
Loading…
Reference in New Issue