feat:增加查询用户菜谱记录功能
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user