From da146a60b94e460f54de3a008e78d94c9fef542f Mon Sep 17 00:00:00 2001 From: ngfchl Date: Sat, 1 Oct 2022 16:27:30 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E7=B2=BE=E7=AE=80data=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=202.=20=E8=AE=BE=E7=BD=AE=E6=95=B0=E6=8D=AE=E5=88=B7=E6=96=B01?= =?UTF-8?q?0=E5=88=86=E9=92=9F=E5=90=8E=E7=BB=93=E6=9D=9F=EF=BC=8C?= =?UTF-8?q?=E9=99=8D=E4=BD=8Edocker=E4=B8=8E=E4=B8=8B=E8=BD=BD=E5=99=A8?= =?UTF-8?q?=E5=8E=8B=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/auto_pt/downloading.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/templates/auto_pt/downloading.html b/templates/auto_pt/downloading.html index fc77e1d..f4f02bf 100644 --- a/templates/auto_pt/downloading.html +++ b/templates/auto_pt/downloading.html @@ -127,7 +127,7 @@ {# @selection-change="tableSelected"#} :menu-config="tableMenu" @menu-click="contextMenuClickEvent" - :data="torrents" + :data="mainData.torrents" height="700" size="mini" auto-resize :row-key="(row) => row.hash" @@ -266,7 +266,6 @@ downloaders: [], loading: false, mainData: {}, - torrents: [], dialogFormVisible: false, timer: {}, deleteForm: false, @@ -418,6 +417,13 @@ }, 1500) }, + updated() { + // 十分钟后停止刷新 + setTimeout(() => { + clearInterval(this.timer) + this.timer = null + }, 1000 * 60 * 10) + }, // 清除定时器,不然页面会卡死 beforeDestroy() { this.$once('hook:beforeDestroy', @@ -481,7 +487,6 @@ } } ).then(res => { - {#console.log(res.data.data.torrents)#} if (res.data.code === 0) { this.mainData = res.data.data // 任务状态过滤器数据 @@ -505,7 +510,6 @@ {#console.log(this.categoryFilters)#} this.server_state = res.data.data.server_state // 获取种子 - this.torrents = res.data.data.torrents //this.$message({ // type: 'success', // message: '任务加载成功!!'