From 45be80f3d8e36de3f5447f1c03e4f764acdeac38 Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Thu, 14 Sep 2023 17:33:36 +0800 Subject: [PATCH] feat: reply sort style --- src/views/403/403.vue | 2 +- src/views/404/404.vue | 2 +- src/views/topic/KUNGalgameTopicPage.vue | 38 ++++--------- src/views/topic/aside/Aside.vue | 4 +- .../topic/aside/components/AsideActive.vue | 19 ++++--- .../topic/aside/components/TopicAsideNav.vue | 57 ++++++++++++++----- 6 files changed, 71 insertions(+), 51 deletions(-) diff --git a/src/views/403/403.vue b/src/views/403/403.vue index ee0633e1..bb2d5d60 100644 --- a/src/views/403/403.vue +++ b/src/views/403/403.vue @@ -17,7 +17,7 @@ height: 100vh; width: 100vw; min-width: 700px; - min-height: 600px; + min-height: 100vh; background: linear-gradient( var(--kungalgame-trans-pink-1), var(--kungalgame-trans-blue-1) diff --git a/src/views/404/404.vue b/src/views/404/404.vue index aed70e93..da41272b 100644 --- a/src/views/404/404.vue +++ b/src/views/404/404.vue @@ -17,7 +17,7 @@ height: 100vh; width: 100vw; min-width: 700px; - min-height: 600px; + height: 100vh; background: linear-gradient( var(--kungalgame-trans-pink-1), var(--kungalgame-trans-blue-1) diff --git a/src/views/topic/KUNGalgameTopicPage.vue b/src/views/topic/KUNGalgameTopicPage.vue index 69228b2d..5b07c22c 100644 --- a/src/views/topic/KUNGalgameTopicPage.vue +++ b/src/views/topic/KUNGalgameTopicPage.vue @@ -71,14 +71,6 @@ const fetchTopicData = async () => { topicData.value = topicResponseData } -const fetchReplyData = async () => { - // 懒加载获取单个话题下面的回复数据 - const replyResponseData = ( - await useKUNGalgameTopicStore().getReplies(tid.value) - ).data - repliesData.value = replyResponseData -} - /** 这里拿到的已经是后端返回回来的 data 数据了 */ onMounted(async () => { await fetchTopicData() @@ -120,18 +112,16 @@ onBeforeMount(() => {
- -
- -
- -
@@ -140,21 +130,16 @@ onBeforeMount(() => {