From 4558beb2ef4fbbc882ccd8933249e89655cfc2ae Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Mon, 15 Nov 2021 17:26:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E8=8B=A5=E5=B9=B2?= =?UTF-8?q?=E7=BC=BA=E9=99=B71007824,1007707,1007880?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/assertion/ApiJsonpathSuggest.vue | 7 ++++--- .../components/settings/personal/TapdUserInfo.vue | 10 +++++----- .../comonents/functional/FunctionalTestCaseEdit.vue | 6 +----- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/assertion/ApiJsonpathSuggest.vue b/frontend/src/business/components/api/definition/components/assertion/ApiJsonpathSuggest.vue index 077524e7e5..3efacbf922 100644 --- a/frontend/src/business/components/api/definition/components/assertion/ApiJsonpathSuggest.vue +++ b/frontend/src/business/components/api/definition/components/assertion/ApiJsonpathSuggest.vue @@ -67,10 +67,11 @@ export default { this.data = {}; try { // 解决精度丢失问题 - let stringedJSON = objStr.replace(/:\s*([-+Ee0-9.]+)/g, ': "$1"'); - let param = JSON.parse(stringedJSON); + // let stringedJSON = objStr.replace(/:\s*([-+Ee0-9.]+)/g, ': "$1"'); + // 一些情况会解析失败,先注释掉 + let param = JSON.parse(objStr); if (param instanceof Array) { - this.$warning(this.$t('api_test.request.assertions.json_path_err')); + this.$warning('不支持解析JSON数组'); return; } this.data = param; diff --git a/frontend/src/business/components/settings/personal/TapdUserInfo.vue b/frontend/src/business/components/settings/personal/TapdUserInfo.vue index f9476b685c..aab37d4e44 100644 --- a/frontend/src/business/components/settings/personal/TapdUserInfo.vue +++ b/frontend/src/business/components/settings/personal/TapdUserInfo.vue @@ -10,11 +10,11 @@ - - - {{$t('commons.validate')}} - - + + + + + diff --git a/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseEdit.vue b/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseEdit.vue index fa8f5a8a07..2b718a213b 100644 --- a/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseEdit.vue +++ b/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseEdit.vue @@ -517,17 +517,13 @@ export default { } .container >>> .el-card__body { - height: calc(100vh - 50px); + height: calc(100vh - 60px); } .comment-card >>> .el-card__header { padding: 0 20px; } -.comment-card >>> .el-card__body { - height: calc(100vh - 100px); -} - .case_container > .el-row { margin-top: 1%; }