From 02d528b559c4216f74443255ccd543351d7c68d8 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Thu, 30 Mar 2023 19:54:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA)?= =?UTF-8?q?=EF=BC=9A=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=85=B3=E8=81=94?= =?UTF-8?q?=E7=9A=84devops=E9=9C=80=E6=B1=82=EF=BC=8C=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=90=8E=E5=9B=9E=E6=98=BE=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1022341 --user=王旭 【测试跟踪】github#21508,功能用例关联的devops需求,保存后回显为空 https://www.tapd.cn/55049933/s/1357910 --- .../src/business/case/components/BaseEditItemComponent.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test-track/frontend/src/business/case/components/BaseEditItemComponent.vue b/test-track/frontend/src/business/case/components/BaseEditItemComponent.vue index a77c813a5c..44e68c6cf6 100644 --- a/test-track/frontend/src/business/case/components/BaseEditItemComponent.vue +++ b/test-track/frontend/src/business/case/components/BaseEditItemComponent.vue @@ -340,6 +340,10 @@ export default { demandOptions = this.contentObject.content.demandOptions || []; } if (demandOptions.length > 0) { + if (this.contentObject.content.demandId === 'other') { + this.optionPlatformValue = this.$t("test_track.case.other"); + return this.optionPlatformValue; + } for (let i = 0; i < demandOptions.length; i++) { if (demandOptions[i].value === this.contentObject.content.demandId) { this.optionPlatformValue = this.handleDemandOptionLabel(demandOptions[i]); @@ -352,9 +356,6 @@ export default { ); } } - if (this.optionPlatformValue === '') { - this.optionPlatformValue = this.$t("test_track.case.other"); - } } return this.optionPlatformValue; },