feat:增加查询用户菜谱记录功能

This commit is contained in:
2025-07-01 22:42:25 +08:00
parent b6f7869fe8
commit 1037edeed4
13 changed files with 160 additions and 62 deletions

View File

@@ -124,9 +124,9 @@ const editClick = () => {
const handleLikeClick = () => {
if (isLike.value) {
foodStore.deleteLike(props.item?.id as number)
foodStore.deleteMomentLike(props.item?.id as number)
} else {
foodStore.addLike(props.item?.id as number)
foodStore.addMomentLike(props.item?.id as number)
}
}
@@ -135,7 +135,7 @@ const onSelectEmoji = (emoji) => {
}
const sendCommentClick = async () => {
await foodStore.addComment(props.item?.id as number, momentInfo.comment)
await foodStore.addMomentComment(props.item?.id as number, momentInfo.comment)
momentInfo.comment = ''
momentInfo.isShowComment = false