diff --git a/frontend/pages/history/index.vue b/frontend/pages/history/index.vue index b70c72cc..ea6fb09b 100644 --- a/frontend/pages/history/index.vue +++ b/frontend/pages/history/index.vue @@ -4,6 +4,17 @@ History
@@ -42,7 +53,8 @@ - + {{ item.text }} @@ -209,7 +221,7 @@ import request from '~/utils/request.js' import moment from 'moment' import Message from '~/components/Message.vue' -import {formatDuration, makeName, makeSearchLink, notification} from '~/utils/index.js' +import {formatDuration, makeName, makePagination, makeSearchLink, notification} from '~/utils/index.js' const route = useRoute() const router = useRouter() @@ -318,25 +330,6 @@ const loadContent = async (pageNumber, fromPopState = false) => { } } -const makePagination = () => { - let pagination = [] - let pages = Math.ceil(total.value / perpage.value) - - if (pages < 2) { - return pagination - } - - for (let i = 1; i <= pages; i++) { - pagination.push({ - page: i, - text: `Page #${i}`, - selected: parseInt(page.value) === i, - }) - } - - return pagination -} - const clearSearch = () => { query.value = '' searchForm.value = false diff --git a/frontend/pages/parity.vue b/frontend/pages/parity.vue index a72487a4..0c883a38 100644 --- a/frontend/pages/parity.vue +++ b/frontend/pages/parity.vue @@ -49,7 +49,7 @@ - + {{ item.text }} @@ -171,7 +171,7 @@