refactor: 更新评论API请求方式和监听配置

This commit is contained in:
wangqiao
2025-08-29 21:37:58 +08:00
parent b6fbdb2b26
commit f0e65ee2ab
2 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export const getDetail = (params: { id?: number | string }) => {
* @return {Promise}
*/
export const getCommentList = (params: { relationId?: number | string; pageNum?: number; pageSize?: number }) => {
return useFetchRequest.get<IResponse<PageResultProjectCommentResVO>>('/prod-api/app-api/business/app/project-comment/page', { params })
return useDollarFetchRequest.get<IResponse<PageResultProjectCommentResVO>>('/prod-api/app-api/business/app/project-comment/page', { query:params })
}
/**

View File

@ -87,6 +87,8 @@
() => props.relationId,
() => {
handleGetCommentList()
},{
immediate: true
}
)
</script>