Fix dashboard task status and recent imports count

This commit is contained in:
jxxghp
2026-06-29 20:34:03 +08:00
parent 5c27c32914
commit a916a1569d
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ const backgroundTasks = computed<BackgroundTaskItem[]>(() => {
id: `schedule-${item.id}`,
title: item.name || t('dashboard.scheduler'),
subtitle: (isRunning && getScheduleProgressText(item)) || item.provider || item.next_run || '',
status: item.status || t('dashboard.taskWaiting'),
status: isRunning ? t('dashboard.taskRunning') : item.status || t('dashboard.taskWaiting'),
icon: visual.icon,
color: visual.color,
progress: isRunning ? getScheduleProgressValue(item) : undefined,

View File

@@ -14,7 +14,7 @@ const recentImports = ref<TransferHistory[]>([])
async function loadRecentImports() {
try {
const response: { data?: { list?: TransferHistory[] } } = await api.get('history/transfer', {
params: { page: 1, count: 4, status: true },
params: { page: 1, count: 5, status: true },
})
recentImports.value = response.data?.list ?? []
} catch (error) {