From 3ddfa1f0d7852a8bae2ba8e12be37046074dff6c Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Wed, 27 Sep 2023 21:25:35 +0800 Subject: [PATCH] feat: split master footer and reply footer --- src/views/topic/components/Master.vue | 4 +- src/views/topic/components/MasterFooter.vue | 213 ++++++++++++++++++ src/views/topic/components/reply/Reply.vue | 6 +- .../ReplyFooter.vue} | 3 - 4 files changed, 218 insertions(+), 8 deletions(-) create mode 100644 src/views/topic/components/MasterFooter.vue rename src/views/topic/components/{TopicFooter.vue => reply/ReplyFooter.vue} (96%) diff --git a/src/views/topic/components/Master.vue b/src/views/topic/components/Master.vue index ffa6f316..ac6ef19d 100644 --- a/src/views/topic/components/Master.vue +++ b/src/views/topic/components/Master.vue @@ -3,7 +3,7 @@ --> + + + + diff --git a/src/views/topic/components/reply/Reply.vue b/src/views/topic/components/reply/Reply.vue index 27d35dad..034aa1b4 100644 --- a/src/views/topic/components/reply/Reply.vue +++ b/src/views/topic/components/reply/Reply.vue @@ -9,7 +9,7 @@ import { Icon } from '@iconify/vue' // 导入评论组件 import Comments from '../comment/Comments.vue' // 导入 Footer 组件 -import TopicFooter from '../TopicFooter.vue' +import ReplyFooter from './ReplyFooter.vue' // 导入发布时间组件 import Time from '../Time.vue' // 导入标签组件 @@ -100,7 +100,7 @@ const handleClickComment = (rid: number) => { - - + { // 保存必要信息,以便发表回复 replyDraft.value.tid = tid - replyDraft.value.r_uid = useKUNGalgameUserStore().uid replyDraft.value.replyUserName = props.rUser.name replyDraft.value.to_uid = props.rUser.uid replyDraft.value.to_floor = props.info.to_floor