From fca5879dc08ded1628ed40674961744b6021a5dc Mon Sep 17 00:00:00 2001 From: landaiqing <3517283258@qq.com> Date: Sun, 3 Nov 2024 22:49:45 +0800 Subject: [PATCH] :sparkles: add comment report --- components.d.ts | 1 + .../src/CommentInput/CommentInput.vue | 2 +- .../src/CommentList/CommentList.vue | 8 +- .../src/MessageReport/MessageReport.vue | 163 ++++++++---------- .../CommentReply/src/MessageReport/index.scss | 32 ++-- .../src/ReplyInput/ReplyInput.vue | 2 +- .../CommentReply/src/ReplyList/ReplyList.vue | 8 +- .../src/ReplyReplyInput/ReplyReply.vue | 2 +- src/locales/language/en.ts | 1 + src/locales/language/zh.ts | 1 + src/store/modules/commentStore.ts | 30 +++- 11 files changed, 131 insertions(+), 119 deletions(-) diff --git a/components.d.ts b/components.d.ts index 140e0e2..0590af2 100644 --- a/components.d.ts +++ b/components.d.ts @@ -34,6 +34,7 @@ declare module 'vue' { ARadio: typeof import('ant-design-vue/es')['Radio'] ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] ASkeleton: typeof import('ant-design-vue/es')['Skeleton'] + ASpace: typeof import('ant-design-vue/es')['Space'] ASpin: typeof import('ant-design-vue/es')['Spin'] AStep: typeof import('ant-design-vue/es')['Step'] ASteps: typeof import('ant-design-vue/es')['Steps'] diff --git a/src/components/CommentReply/src/CommentInput/CommentInput.vue b/src/components/CommentReply/src/CommentInput/CommentInput.vue index 87f54e7..13a2696 100644 --- a/src/components/CommentReply/src/CommentInput/CommentInput.vue +++ b/src/components/CommentReply/src/CommentInput/CommentInput.vue @@ -182,7 +182,7 @@ async function commentSubmit(point: any) { showSubmitCaptcha.value = false; await getCommentList(); } else { - showSubmitCaptcha.value = false; + await comment.getSlideCaptchaData(); message.error(result.message || t('comment.commentError')); } } diff --git a/src/components/CommentReply/src/CommentList/CommentList.vue b/src/components/CommentReply/src/CommentList/CommentList.vue index e04d090..085be44 100644 --- a/src/components/CommentReply/src/CommentList/CommentList.vue +++ b/src/components/CommentReply/src/CommentList/CommentList.vue @@ -100,7 +100,7 @@ @@ -164,7 +161,6 @@ const user = useStore().user; const topicId = ref("123"); -const showMessageReport = ref(false); /** * 获取评论列表 diff --git a/src/components/CommentReply/src/MessageReport/MessageReport.vue b/src/components/CommentReply/src/MessageReport/MessageReport.vue index 2261f0e..1bcbdf9 100644 --- a/src/components/CommentReply/src/MessageReport/MessageReport.vue +++ b/src/components/CommentReply/src/MessageReport/MessageReport.vue @@ -1,101 +1,86 @@