File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ export const commentsApi = {
2525
2626 // 回复评论(普通)
2727 reply : ( id : string , data : ReplyCommentData ) =>
28- request . post < CommentModel > ( `/comments/owner /reply/${ id } ` , { data } ) ,
28+ request . post < CommentModel > ( `/comments/reader /reply/${ id } ` , { data } ) ,
2929
30- // 主人回复评论 (只需 text)
31- ownerReply : ( id : string , text : string ) =>
32- request . post < CommentModel > ( `/comments/owner /reply/${ id } ` , {
30+ // 登录态回复评论 (只需 text)
31+ readerReply : ( id : string , text : string ) =>
32+ request . post < CommentModel > ( `/comments/reader /reply/${ id } ` , {
3333 data : { text } ,
3434 } ) ,
3535
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ const ManageComment = defineComponent(() => {
8989
9090 const replyMutation = useMutation ( {
9191 mutationFn : ( { id, text } : { id : string ; text : string } ) =>
92- commentsApi . ownerReply ( id , text ) ,
92+ commentsApi . readerReply ( id , text ) ,
9393 onSuccess : ( ) => {
9494 toast . success ( '回复成功' )
9595 queryClient . invalidateQueries ( { queryKey : queryKeys . comments . all } )
You can’t perform that action at this time.
0 commit comments