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;
}
if (params.associateType === CaseLinkEnum.API) {
params.associateType = showType.value;
if (props.associatedType === CaseLinkEnum.API) {
params.associateType = showType.value === 'API' ? showType.value : 'API_CASE';
} else {
params.associateType = props.associatedType;
}
emit('save', params);
}