From 19ff4e8d5d043ba57380a4013dfe824f1599225d Mon Sep 17 00:00:00 2001 From: wenyann Date: Thu, 17 Jun 2021 10:58:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A7=E7=94=A8=E4=BE=8B=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=8B=BE=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/scenario/EditApiScenario.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index f4d925a6cb..1e14b025b1 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -317,8 +317,8 @@ export default { }, data() { return { - onSampleError: false, - showConfigButtonWithOutPermission:false, + onSampleError: true, + showConfigButtonWithOutPermission: false, props: { label: "label", children: "hashTree" @@ -1035,7 +1035,11 @@ export default { this.currentScenario.headers = obj.headers; } this.enableCookieShare = obj.enableCookieShare; - this.onSampleError = obj.onSampleError; + if (obj.onSampleError === undefined) { + this.onSampleError = true; + } else { + this.onSampleError = obj.onSampleError; + } if (obj.hashTree) { obj.hashTree.forEach(item => { if (!item.hashTree) {