fix(comment): 修复回复评论时的 parentId 错误

-将 replyingTo.value.id 改为 replyingTo.value,以确保使用正确的值作为 parentId
-这个修改解决了回复评论时可能出现的错误或异常
This commit is contained in:
ikmkj
2025-08-10 19:53:19 +08:00
parent 1546cdb3c4
commit 22a189053e

View File

@@ -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) {