fix(测试计划): 修复测试计划关联接口CASE类型错误

This commit is contained in:
xinxin.wu 2024-07-18 17:01:58 +08:00 committed by 刘瑞斌
parent 4aa3ea1566
commit cd6083ee7e
1 changed files with 2 additions and 3 deletions

View File

@ -553,12 +553,11 @@
params.syncCase = syncCase.value; params.syncCase = syncCase.value;
} }
if (params.associateType === CaseLinkEnum.API) { if (props.associatedType === CaseLinkEnum.API) {
params.associateType = showType.value; params.associateType = showType.value === 'API' ? showType.value : 'API_CASE';
} else { } else {
params.associateType = props.associatedType; params.associateType = props.associatedType;
} }
emit('save', params); emit('save', params);
} }