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 @@
-
请先登录,点击跳转到登录页面
-
登录
+
{{ props.text }}
+
{{ props.buttonText }}
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 @@
-
-
-
-
- 这是一篇私密文章,仅作者本人及管理员可见
-
- 返回首页
-
-
+
+
+
+
-
- 请登录后查看这篇文章
-
- 登录
-
-
-
-
-
+
+
+
+
+
@@ -34,7 +33,9 @@
审核中
已拒绝
精品
-
已关闭
+
已关闭
+
仅自己可见
+
仅登录可见
-
-