diff --git a/src/api/comment.js b/src/api/comment.js
index 12654620..0beada8f 100644
--- a/src/api/comment.js
+++ b/src/api/comment.js
@@ -4,18 +4,12 @@ const baseUrl = '/api/admin/posts/comments'
const commentApi = {}
-commentApi.listLatest = () => {
+commentApi.listLatest = (top, status) => {
return service({
url: `${baseUrl}/latest`,
- method: 'get'
- })
-}
-
-commentApi.listLatestByStatus = (top) => {
- return service({
- url: `${baseUrl}/latest/AUDITING`,
params: {
- top: top
+ top: top,
+ status: status
},
method: 'get'
})
diff --git a/src/components/Tools/HeaderComment.vue b/src/components/Tools/HeaderComment.vue
index b513bf27..5c180cb2 100644
--- a/src/components/Tools/HeaderComment.vue
+++ b/src/components/Tools/HeaderComment.vue
@@ -12,7 +12,10 @@
-
+
- {{ item.author }}:
+ {{ item.author }}:
{{ item.createTime | timeAgo }}
@@ -31,8 +37,14 @@
-