From fcdec5e58a25c91afebe626021574838a5d6b293 Mon Sep 17 00:00:00 2001 From: x1ao4 Date: Tue, 15 Jul 2025 02:42:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=88=B0=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2=E6=97=B6=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E4=BB=BB=E5=8A=A1=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 activeTab 监听器和 changeTab 函数中添加对 tasklist 页面的检测 - 切换到任务列表时自动调用 loadTaskLatestInfo() 刷新最新转存文件和更新日期 - 保持与转存记录页面一致的用户体验,确保显示最新数据 --- app/templates/index.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index 5319cab..d6a4237 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -602,7 +602,7 @@ -
+

任务设置

@@ -2475,6 +2475,10 @@ } }, activeTab(newValue, oldValue) { + // 如果切换到任务列表页面,则刷新任务最新信息 + if (newValue === 'tasklist') { + this.loadTaskLatestInfo(); + } // 如果切换到文件整理页面,则加载文件列表 if (newValue === 'filemanager') { this.fetchAccountsDetail(); @@ -3038,14 +3042,19 @@ if (window.innerWidth <= 768) { $('#sidebarMenu').collapse('toggle') } - + + // 当切换到任务列表标签时刷新任务最新信息 + if (tab === 'tasklist') { + this.loadTaskLatestInfo(); + } + // 当切换到历史记录标签时加载数据 if (tab === 'history') { this.loadHistoryRecords(); // 加载所有任务名称用于筛选 this.loadAllTaskNames(); } - + // 当切换到文件整理标签时加载文件列表 if (tab === 'filemanager') { // 从本地存储中恢复文件管理器的分页大小设置