diff --git a/src/api/comment.js b/src/api/comment.js index 996d0aa24..97a300d81 100644 --- a/src/api/comment.js +++ b/src/api/comment.js @@ -19,6 +19,20 @@ commentApi.query = params => { }) } +commentApi.updateStatus = (commentId, status) => { + return service({ + url: `${baseUrl}/${commentId}/status/${status}`, + method: 'put' + }) +} + +commentApi.delete = commentId => { + return service({ + url: `${baseUrl}/${commentId}`, + method: 'delete' + }) +} + commentApi.commentStatus = { PUBLISHED: { color: 'green', diff --git a/src/views/attachment/components/AttachmentSelectDrawer.vue b/src/views/attachment/components/AttachmentSelectDrawer.vue index 56a655af2..42a0bc6b9 100644 --- a/src/views/attachment/components/AttachmentSelectDrawer.vue +++ b/src/views/attachment/components/AttachmentSelectDrawer.vue @@ -1,7 +1,7 @@