From 070f61e229ac6e33d5a6ae64e95828f52eb1b2df Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Thu, 9 Jan 2025 11:07:40 +0800 Subject: [PATCH] fix: Fix the issue of pagination errors in the backup list (#7673) --- frontend/src/components/backup/index.vue | 1 - frontend/src/components/upload/index.vue | 3 +-- frontend/src/lang/modules/tw.ts | 2 +- frontend/src/lang/modules/zh.ts | 2 +- frontend/src/views/cronjob/backup/index.vue | 1 - 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/backup/index.vue b/frontend/src/components/backup/index.vue index 25f57509b..50b0e4563 100644 --- a/frontend/src/components/backup/index.vue +++ b/frontend/src/components/backup/index.vue @@ -126,7 +126,6 @@ const opRef = ref(); const data = ref(); const paginationConfig = reactive({ - cacheSizeKey: 'backup-page-size', currentPage: 1, pageSize: 10, total: 0, diff --git a/frontend/src/components/upload/index.vue b/frontend/src/components/upload/index.vue index c1efa85b6..eceffa52f 100644 --- a/frontend/src/components/upload/index.vue +++ b/frontend/src/components/upload/index.vue @@ -136,7 +136,7 @@ import { reactive, ref } from 'vue'; import { computeSize } from '@/utils/util'; import i18n from '@/lang'; -import { UploadFile, UploadFiles, UploadInstance, genFileId } from 'element-plus'; +import { UploadFile, UploadFiles, UploadInstance, UploadProps, UploadRawFile, genFileId } from 'element-plus'; import { File } from '@/api/interface/file'; import DrawerHeader from '@/components/drawer-header/index.vue'; import { BatchDeleteFile, CheckFile, ChunkUploadFileData, GetUploadList } from '@/api/modules/files'; @@ -156,7 +156,6 @@ const currentRow = ref(); const data = ref(); const title = ref(); const paginationConfig = reactive({ - cacheSizeKey: 'upload-page-size', currentPage: 1, pageSize: 10, total: 0, diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index aa9b5c5f3..477a2ba49 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -883,7 +883,7 @@ const message = { perDayHelper: '每日 {0}:{1} 執行', perHourHelper: '每小時 {0}分 執行', perNDayHelper: '每 {0} 日 {1}:{2} 執行', - perNHourHelper: '每 {0}小時 {1} 執行', + perNHourHelper: '每 {0}小時 {1}分 執行', perNMinuteHelper: '每 {0}分 執行', perNSecondHelper: '每 {0}秒 執行', perMonth: '每月', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 4c4aaf7f1..0a93f5248 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -883,7 +883,7 @@ const message = { perDayHelper: '每日 {0}:{1} 执行', perHourHelper: '每小时 {0}分 执行', perNDayHelper: '每 {0} 日 {1}:{2} 执行', - perNHourHelper: '每 {0}小时 {1} 执行', + perNHourHelper: '每 {0}小时 {1}分 执行', perNMinuteHelper: '每 {0}分 执行', perNSecondHelper: '每 {0}秒 执行', perMonth: '每月', diff --git a/frontend/src/views/cronjob/backup/index.vue b/frontend/src/views/cronjob/backup/index.vue index a51076997..7dbd95623 100644 --- a/frontend/src/views/cronjob/backup/index.vue +++ b/frontend/src/views/cronjob/backup/index.vue @@ -70,7 +70,6 @@ const loading = ref(); const data = ref(); const paginationConfig = reactive({ - cacheSizeKey: 'backup-cronjob-page-size', currentPage: 1, pageSize: 10, total: 0,