diff --git a/test-track/frontend/src/api/test-case-comment.js b/test-track/frontend/src/api/test-case-comment.js index e82bdf79c2..6b79fb23de 100644 --- a/test-track/frontend/src/api/test-case-comment.js +++ b/test-track/frontend/src/api/test-case-comment.js @@ -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) {