diff --git a/src/api/log.js b/src/api/log.js index d7b05ba9e..773b045ea 100644 --- a/src/api/log.js +++ b/src/api/log.js @@ -14,6 +14,21 @@ logApi.listLatest = (top) => { }) } +logApi.pageBy = logPagination => { + return service({ + url: baseUrl, + params: logPagination, + method: 'get' + }) +} + +logApi.clear = () => { + return service({ + url: `${baseUrl}/clear`, + method: 'get' + }) +} + logApi.logType = { BLOG_INITIALIZED: { value: 0, diff --git a/src/components/global.less b/src/components/global.less index 3f09a2b4a..ee16ef78d 100644 --- a/src/components/global.less +++ b/src/components/global.less @@ -614,4 +614,8 @@ body { .ant-pagination-options-size-changer.ant-select { margin: 0 } + + .pagination { + margin-top: 1rem; + } } \ No newline at end of file diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index 210c50db7..b362ce4fa 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -115,6 +115,7 @@
{{ item.content }}