diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue index 03bc2b5c89..1d6e5b1bdb 100644 --- a/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue +++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue @@ -2,122 +2,122 @@
@@ -179,12 +179,12 @@ export default { }, setBodyType() { if ( - this.response && - this.response.responseResult && - this.response.responseResult.headers && - this.response.responseResult.headers.indexOf( - "Content-Type: application/json" - ) > 0 + this.response && + this.response.responseResult && + this.response.responseResult.headers && + this.response.responseResult.headers.indexOf( + "Content-Type: application/json" + ) > 0 ) { this.mode = BODY_FORMAT.JSON; this.$nextTick(() => { @@ -222,20 +222,20 @@ export default { this.response.responseResult.vars = ""; } this.reqMessages = - this.$t("api_test.request.address") + - ":\n" + - this.response.url + - "\n" + - this.$t("api_test.scenario.headers") + - ":\n" + - this.response.headers + - "\n" + - "Cookie:\n" + - this.response.cookies + - "\n" + - "Body:" + - "\n" + - this.response.body; + this.$t("api_test.request.address") + + ":\n" + + this.response.url + + "\n" + + this.$t("api_test.scenario.headers") + + ":\n" + + this.response.headers + + "\n" + + "Cookie:\n" + + this.response.cookies + + "\n" + + "Body:" + + "\n" + + this.response.body; } }, }, @@ -246,15 +246,15 @@ export default { computed: { isSqlType() { return ( - this.currentProtocol === "SQL" && - this.response.responseResult.responseCode === "200" && - this.mode === "table" + this.currentProtocol === "SQL" && + this.response.responseResult['responseCode'] === "200" && + this.mode === "table" ); }, responseResult() { return this.response && this.response.responseResult - ? this.response.responseResult - : {}; + ? this.response.responseResult + : {}; }, }, }; @@ -280,7 +280,7 @@ export default { .text-container .pane { background-color: #f5f5f5; padding: 1px 0; - height: 250px; + height: 400px; overflow-y: auto; } @@ -289,7 +289,7 @@ export default { } :deep(.el-tabs__nav-wrap::after) { - height: 0px; + height: 0; } .ms-div { diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue index 8fe2f4738d..9713e5e152 100644 --- a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue +++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue @@ -1,21 +1,21 @@