diff --git a/api/drawe-detail/index.ts b/api/drawe-detail/index.ts index 5fe0aa7..2ee8409 100644 --- a/api/drawe-detail/index.ts +++ b/api/drawe-detail/index.ts @@ -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>('/prod-api/app-api/business/app/project-comment/page', { params }) + return useDollarFetchRequest.get>('/prod-api/app-api/business/app/project-comment/page', { query:params }) } /** diff --git a/components/comment-section/index.vue b/components/comment-section/index.vue index 8a1be96..6af5a2e 100644 --- a/components/comment-section/index.vue +++ b/components/comment-section/index.vue @@ -87,6 +87,8 @@ () => props.relationId, () => { handleGetCommentList() + },{ + immediate: true } )