diff --git a/src/store/modules/topic.ts b/src/store/modules/topic.ts index 69dd77d3..c14d4e05 100644 --- a/src/store/modules/topic.ts +++ b/src/store/modules/topic.ts @@ -80,8 +80,7 @@ export const useKUNGalgameTopicStore = defineStore({ isShowHotKeywords: true, tid: 0, - r_uid: 0, - replyUserName: '', + toUserName: '', to_uid: 0, content: '', tags: [], @@ -280,8 +279,7 @@ export const useKUNGalgameTopicStore = defineStore({ resetReplyDraft() { this.replyDraft.textCount = 0 this.replyDraft.tid = 0 - this.replyDraft.r_uid = 0 - this.replyDraft.replyUserName = '' + this.replyDraft.toUserName = '' this.replyDraft.to_uid = 0 this.replyDraft.content = '' this.replyDraft.tags = [] diff --git a/src/store/types/topic.d.ts b/src/store/types/topic.d.ts index 63d342f4..abbad32c 100644 --- a/src/store/types/topic.d.ts +++ b/src/store/types/topic.d.ts @@ -16,9 +16,8 @@ interface ReplyDraft { // 当前话题的 id tid: number - r_uid: number // 回复给谁,用于回复面板展示 - replyUserName: string + toUserName: string to_uid: number content: string tags: string[] diff --git a/src/views/topic/components/Master.vue b/src/views/topic/components/Master.vue index 1b12ebc5..97c2e28e 100644 --- a/src/views/topic/components/Master.vue +++ b/src/views/topic/components/Master.vue @@ -102,7 +102,7 @@ const loliStatus = computed(() => { - +