From 138f2ccfe6907f237c8f3ae1cd3db34a15ac7e09 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Tue, 5 Jul 2022 18:12:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E6=AD=A5=E9=AA=A4=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E6=8E=A7=E5=88=B6=E5=99=A8=E4=B8=8B=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=EF=BC=8C=E6=8E=A8=E8=8D=90JSONPATH=E4=B8=8D=E7=94=9F=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#15508)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1014577 --user=王孝刚 【接口测试】github#15406场景用例中间夹着条件控制器时无法使用推荐jsonpan断言 https://www.tapd.cn/55049933/s/1194581 Co-authored-by: wxg0103 <727495428@qq.com> --- .../api/automation/scenario/component/ApiComponent.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue index 6dee5bf71c..b7a8909265 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue @@ -276,6 +276,9 @@ export default { if (requireComponent != null && JSON.stringify(esbDefinition) != '{}' && JSON.stringify(esbDefinitionResponse) != '{}') { this.showXpackCompnent = true; } + if (this.request.requestResult && this.request.requestResult.length > 0) { + this.response = this.request.requestResult[0]; + } }, watch: { message() {