fix(comment): 修复回复评论时的 parentId 错误
-将 replyingTo.value.id 改为 replyingTo.value,以确保使用正确的值作为 parentId -这个修改解决了回复评论时可能出现的错误或异常
This commit is contained in:
@@ -404,7 +404,7 @@ const submitComment = async (isReply = false) => {
|
|||||||
targetId: music.value.id,
|
targetId: music.value.id,
|
||||||
targetType: 1, // 1表示音乐
|
targetType: 1, // 1表示音乐
|
||||||
content: content,
|
content: content,
|
||||||
parentId: isReply ? replyingTo.value.id : null,
|
parentId: isReply ? replyingTo.value : null,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user