From 326152f53e76258bd6bdfd12433171763551dac3 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 20 Jul 2021 19:41:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E6=AF=8F=E6=AC=A1=E6=89=A7=E8=A1=8C=E5=89=8D?= =?UTF-8?q?=E6=B8=85=E7=90=86=E7=BB=93=E6=9E=9C=E9=9B=86=20#1005286=20--bu?= =?UTF-8?q?g=3D1005286=20--user=3D=E8=B5=B5=E5=8B=87=20=E3=80=90=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=B5=8B=E8=AF=95-=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3...=20https://www.tapd.cn/55049933/s/1026580?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/scenario/EditApiScenario.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index c8e2aa42f2..5576891c43 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -448,6 +448,18 @@ export default { this.reqTotal = 0; this.reqSuccess = 0; }, + clearResult(arr) { + if (arr) { + arr.forEach(item => { + item.requestResult = undefined; + item.result = undefined; + item.code = undefined; + if (item.hashTree && item.hashTree.length > 0) { + this.clearResult(item.hashTree); + } + }) + } + }, editParent(node, status) { if (!status) { node.data.code = "error"; @@ -901,6 +913,7 @@ export default { } this.stopDebug = ""; this.clearDebug(); + this.clearResult(this.scenarioDefinition); /*触发执行操作*/ this.$refs.currentScenario.validate((valid) => { if (valid) {