fix(接口自动化): 修复实时调试状态不显示问题

This commit is contained in:
fit2-zhao 2021-07-15 16:01:56 +08:00 committed by fit2-zhao
parent 58d388b03e
commit 9caa3f542e
2 changed files with 3 additions and 3 deletions

View File

@ -726,7 +726,7 @@ export default {
arr[i].requestResult = this.debugResult.get(key);
arr[i].result = null;
arr[i].debug = this.debug;
this.findNode(arr[i].name, arr[i].index, arr[i].requestResult.success);
this.findNode(arr[i].name, arr[i].index, arr[i].requestResult[0].success);
}
}
},

View File

@ -23,8 +23,8 @@
<el-tag size="mini" class="ms-tag" v-if="request.referenced ==='REF'">{{ $t('api_test.scenario.reference') }}</el-tag>
</template>
<template v-slot:debugStepCode>
<span class="ms-step-debug-code" :class="request.requestResult.success?'ms-req-success':'ms-req-error'" v-if="request.debug && request.requestResult && request.requestResult.responseResult">
{{ request.requestResult.success ? 'success' : 'error' }}
<span class="ms-step-debug-code" :class="request.requestResult[0].success?'ms-req-success':'ms-req-error'" v-if="request.debug && request.requestResult[0] && request.requestResult[0].responseResult">
{{ request.requestResult[0].success ? 'success' : 'error' }}
</span>
</template>
<template v-slot:button>