diff --git a/web/src/api/post.ts b/web/src/api/post.ts
index a16fb77c..81d8e1a7 100644
--- a/web/src/api/post.ts
+++ b/web/src/api/post.ts
@@ -154,6 +154,50 @@ export const visibilityPost = (
});
};
+/** 点赞评论 */
+export const thumbsUpTweetComment = (
+ data: NetParams.PostTweetCommentThumbs
+): Promise
=> {
+ return request({
+ method: "post",
+ url: "/v1/tweet/comment/thumbsup",
+ data,
+ });
+};
+
+/** 点踩评论 */
+export const thumbsDownTweetComment = (
+ data: NetParams.PostTweetCommentThumbs
+): Promise => {
+ return request({
+ method: "post",
+ url: "/v1/tweet/comment/thumbsdown",
+ data,
+ });
+};
+
+/** 点赞评论回复 */
+export const thumbsUpTweetReply = (
+ data: NetParams.PostTweetReplyThumbs
+): Promise => {
+ return request({
+ method: "post",
+ url: "/v1/tweet/reply/thumbsup",
+ data,
+ });
+};
+
+/** 点踩评论回复 */
+export const thumbsDownTweetReply = (
+ data: NetParams.PostTweetReplyThumbs
+): Promise => {
+ return request({
+ method: "post",
+ url: "/v1/tweet/reply/thumbsdown",
+ data,
+ });
+};
+
/** 发布动态评论 */
export const createComment = (
data: NetParams.PostCreateComment
diff --git a/web/src/assets/css/main.less b/web/src/assets/css/main.less
index 3d4024e2..d07f7fc5 100644
--- a/web/src/assets/css/main.less
+++ b/web/src/assets/css/main.less
@@ -93,8 +93,6 @@
@media screen and (max-width: 821px) {
.content-wrap {
top: 0;
- // left: 60px;
position: absolute !important;
- // width: calc(100% - 60px) !important;
}
}
\ No newline at end of file
diff --git a/web/src/components/auth.vue b/web/src/components/auth.vue
index c35d729a..4ea830fa 100644
--- a/web/src/components/auth.vue
+++ b/web/src/components/auth.vue
@@ -226,6 +226,7 @@ const handleLogin = (e: Event) => {
store.commit('updateUserinfo', res);
store.commit('triggerAuth', false);
+ store.commit('refresh')
loginForm.username = '';
loginForm.password = '';
})
diff --git a/web/src/components/comment-item.vue b/web/src/components/comment-item.vue
index 4c89d8f1..0d8956be 100644
--- a/web/src/components/comment-item.vue
+++ b/web/src/components/comment-item.vue
@@ -24,12 +24,7 @@
- {{
- comment.ip_loc
- ? comment.ip_loc + ' · '
- : comment.ip_loc
- }}
- {{ formatPrettyTime(comment.created_on, store.state.collapsedLeft) }}
+ {{ comment.ip_loc}}
+
+
-
-
@@ -103,7 +98,6 @@
import { ref, computed } from 'vue';
import { useStore } from 'vuex';
import { useRouter } from 'vue-router';
-import { formatPrettyTime } from '@/utils/formatTime';
import { parsePostTag } from '@/utils/content';
import { Trash } from '@vicons/tabler';
import { deleteComment } from '@/api/post';
diff --git a/web/src/components/compose-reply.vue b/web/src/components/compose-reply.vue
index e79b5e2f..5b7d10b7 100644
--- a/web/src/components/compose-reply.vue
+++ b/web/src/components/compose-reply.vue
@@ -1,36 +1,51 @@
-
- 回复
-
-
- 取消
+
+ {{ formatPrettyTime(comment.created_on) }}
+
+
+
+
+
+ {{ thumbsUpCount }}
+
+
+
+
+
+
+ {{ thumbsUpCount }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 回复
+
+
+ 取消
+
+
-
-
+
+
回复
@@ -40,18 +55,27 @@