From 499069573e5448ee29b71802ef980e0e2862de23 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 24 Oct 2025 10:11:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=B9=E7=AA=97=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BAoverlay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend_nuxt/components/LoginOverlay.vue | 21 ++++++++-- frontend_nuxt/pages/index.vue | 4 +- frontend_nuxt/pages/posts/[id]/index.vue | 47 +++++++++++------------ 3 files changed, 44 insertions(+), 28 deletions(-) diff --git a/frontend_nuxt/components/LoginOverlay.vue b/frontend_nuxt/components/LoginOverlay.vue index af508a404..7149c4fc6 100644 --- a/frontend_nuxt/components/LoginOverlay.vue +++ b/frontend_nuxt/components/LoginOverlay.vue @@ -3,15 +3,30 @@
diff --git a/frontend_nuxt/pages/index.vue b/frontend_nuxt/pages/index.vue index 74e3c994b..ca18a3a7c 100644 --- a/frontend_nuxt/pages/index.vue +++ b/frontend_nuxt/pages/index.vue @@ -70,7 +70,7 @@ {{ article.title }} - +
@@ -296,6 +296,7 @@ const { comments: p.commentCount, views: p.views, rssExcluded: p.rssExcluded || false, + isRestricted: p.visibleScope === 'ONLY_ME' || p.visibleScope === 'ONLY_REGISTER', time: TimeManager.format( selectedTopic.value === '最新回复' ? p.lastReplyAt || p.createdAt : p.createdAt, ), @@ -337,6 +338,7 @@ const fetchNextPage = async () => { members: (p.participants || []).map((m) => ({ id: m.id, avatar: m.avatar })), comments: p.commentCount, views: p.views, + isRestricted: p.visibleScope === 'ONLY_ME' || p.visibleScope === 'ONLY_REGISTER', rssExcluded: p.rssExcluded || false, time: TimeManager.format( selectedTopic.value === '最新回复' ? p.lastReplyAt || p.createdAt : p.createdAt, diff --git a/frontend_nuxt/pages/posts/[id]/index.vue b/frontend_nuxt/pages/posts/[id]/index.vue index 45eea0f0e..31ce3bf8c 100644 --- a/frontend_nuxt/pages/posts/[id]/index.vue +++ b/frontend_nuxt/pages/posts/[id]/index.vue @@ -1,23 +1,22 @@