fix: 旧用例默认勾选

This commit is contained in:
wenyann 2021-06-17 10:58:13 +08:00 committed by 刘瑞斌
parent 11c2fbeacb
commit 19ff4e8d5d
1 changed files with 7 additions and 3 deletions

View File

@ -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) {