diff --git a/Yi.BBS.Vue3/src/apis/agreeApi.js b/Yi.BBS.Vue3/src/apis/agreeApi.js new file mode 100644 index 00000000..864a8957 --- /dev/null +++ b/Yi.BBS.Vue3/src/apis/agreeApi.js @@ -0,0 +1,11 @@ +import myaxios from '@/utils/request' +export function operate(discussId){ + if(discussId==undefined) + { + return; + } + return myaxios({ + url: `/agree/operate/${discussId}`, + method: 'post' + }) +}; \ No newline at end of file diff --git a/Yi.BBS.Vue3/src/components/DisscussCard.vue b/Yi.BBS.Vue3/src/components/DisscussCard.vue index 6feb2c4f..a031b86d 100644 --- a/Yi.BBS.Vue3/src/components/DisscussCard.vue +++ b/Yi.BBS.Vue3/src/components/DisscussCard.vue @@ -19,8 +19,8 @@ - - 点赞 + + 点赞:{{ agreeNum??0 }} 收藏 @@ -34,17 +34,38 @@