diff --git a/src/router/index.ts b/src/router/index.ts
index b7b7d7b..3c3955b 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -65,6 +65,12 @@ const router = createRouter({
name: 'AdminUserList',
component: () => import('@/views/admin/UserListView.vue'),
meta: { requiresAdmin: true }
+ },
+ {
+ path: 'comments',
+ name: 'AdminCommentReview',
+ component: () => import('@/views/admin/CommentReviewView.vue'),
+ meta: { requiresAdmin: true }
}
]
}
diff --git a/src/views/admin/AdminLayout.vue b/src/views/admin/AdminLayout.vue
index ffe003e..ec5d793 100644
--- a/src/views/admin/AdminLayout.vue
+++ b/src/views/admin/AdminLayout.vue
@@ -23,6 +23,7 @@ async function handleLogout() {
{{ error }}
+加载中...
+暂无待审核评论
+ +| 作者 | +内容 | +状态 | +提交时间 | +操作 | +
|---|---|---|---|---|
|
+ {{ comment.authorName }}
+ {{ comment.authorEmail }}
+ |
+ {{ comment.content }} | ++ + {{ statusLabel(comment.status) }} + + | +{{ formatDate(comment.createdAt) }} | +
+
+
+
+
+
+ |
+
共 {{ total }} 条评论
+