diff --git a/src/api/comment.js b/src/api/comment.js
index 0afa43c8..4b90249d 100644
--- a/src/api/comment.js
+++ b/src/api/comment.js
@@ -11,4 +11,30 @@ commentApi.listLatest = () => {
})
}
+commentApi.query = params => {
+ return service({
+ url: baseUrl,
+ params: params,
+ method: 'get'
+ })
+}
+
+commentApi.commentStatus = {
+ PUBLISHED: {
+ color: 'green',
+ status: 'success',
+ text: '已发布'
+ },
+ AUDITING: {
+ color: 'yellow',
+ status: 'warning',
+ text: '待审核'
+ },
+ RECYCLE: {
+ color: 'red',
+ status: 'error',
+ text: '回收站'
+ }
+}
+
export default commentApi
diff --git a/src/views/comment/CommentList.vue b/src/views/comment/CommentList.vue
index 86b83ac9..3cd3919c 100644
--- a/src/views/comment/CommentList.vue
+++ b/src/views/comment/CommentList.vue
@@ -6,23 +6,25 @@