fix(测试跟踪): 测试计划用例详情页,选择全部评论,显示为空

--bug=1025756 --user=陈建星 【测试跟踪】测试计划-功能用例详情页-选择全部评论-未展示功能和执行评论 https://www.tapd.cn/55049933/s/1366323
This commit is contained in:
chenjianxing 2023-04-25 12:08:21 +08:00 committed by fit2-zhao
parent 73943bc54d
commit 95c0efce17
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,10 @@ export function testCaseCommentList(id) {
}
export function testCaseCommentListByType(id, type) {
return get(BASE_URL + `list/${id}/${type}`);
if (type) {
return get(BASE_URL + `list/${id}/${type}`);
}
return get(BASE_URL + `list/${id}`);
}
export function testCaseCommentListByTypeAndBelongId(id, type, belongId) {