From 02f394db3367eb83e725026301226226ac6e7bb4 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 28 Sep 2022 18:25:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcase=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E5=BA=93=E9=81=AE=E6=8C=A1=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1017380 --user=王孝刚 【接口测试】接口模板中有富文本框,会在创建case和mock页面显示 https://www.tapd.cn/55049933/s/1253984 --- frontend/package.json | 2 +- .../business/components/api/definition/components/ApiConfig.vue | 2 +- .../components/api/definition/components/case/ApiCaseItem.vue | 2 +- .../components/track/case/components/MsMarkDownText.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 2a54c2239e..c028b3aa43 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -43,7 +43,7 @@ "lodash.isnumber": "^3.0.3", "lodash.isobject": "^3.0.2", "lodash.isstring": "^4.0.1", - "mavon-editor": "2.9.1", + "mavon-editor": "2.10.4", "md5": "^2.3.0", "mockjs": "^1.1.0", "nprogress": "^0.2.0", diff --git a/frontend/src/business/components/api/definition/components/ApiConfig.vue b/frontend/src/business/components/api/definition/components/ApiConfig.vue index 3104f4b824..8b883ec5bd 100644 --- a/frontend/src/business/components/api/definition/components/ApiConfig.vue +++ b/frontend/src/business/components/api/definition/components/ApiConfig.vue @@ -125,7 +125,7 @@ export default { if (typeArray.indexOf(scenarioDefinition[i].type) !== -1) { scenarioDefinition[i].originalDataSourceId = scenarioDefinition[i].dataSourceId; } - if (scenarioDefinition[i].hashTree !== undefined && scenarioDefinition[i].hashTree.length > 0) { + if (scenarioDefinition[i].hashTree && scenarioDefinition[i].hashTree.length > 0) { this.setOriginal(scenarioDefinition[i].hashTree); } } diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue index 215620420b..be4ee637c2 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue @@ -465,7 +465,7 @@ export default { scenarioDefinition[i].originalDataSourceId = scenarioDefinition[i].dataSourceId; scenarioDefinition[i].originalEnvironmentId = scenarioDefinition[i].environmentId; } - if (scenarioDefinition[i].hashTree !== undefined && scenarioDefinition[i].hashTree.length > 0) { + if (scenarioDefinition[i].hashTree && scenarioDefinition[i].hashTree.length > 0) { this.setOriginal(scenarioDefinition[i].hashTree); } } diff --git a/frontend/src/business/components/track/case/components/MsMarkDownText.vue b/frontend/src/business/components/track/case/components/MsMarkDownText.vue index b0318a475a..d58d9c3c97 100644 --- a/frontend/src/business/components/track/case/components/MsMarkDownText.vue +++ b/frontend/src/business/components/track/case/components/MsMarkDownText.vue @@ -254,7 +254,7 @@ export default {