fix(测试跟踪):功能用例关联的devops需求,保存后回显为空

--bug=1022341 --user=王旭 【测试跟踪】github#21508,功能用例关联的devops需求,保存后回显为空 https://www.tapd.cn/55049933/s/1357910
This commit is contained in:
WangXu10 2023-03-30 19:54:42 +08:00 committed by jianxing
parent 8a95c28ed0
commit 3889c2c330
1 changed files with 4 additions and 3 deletions

View File

@ -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;
},