From 723b3813f04cc566909f8f43da97bd2007af1d46 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 30 Aug 2022 14:31:42 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BC=98=E5=8C=96=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=A7=84=E5=88=99=E9=80=BB=E8=BE=91=EF=BC=8C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E4=B8=AD=E6=89=93=E5=8D=B0=E8=A7=84=E5=88=99=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_pt/views.py | 3 ++- templates/auto_pt/restart.html | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/auto_pt/views.py b/auto_pt/views.py index 144941c..eeb895c 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -174,7 +174,7 @@ def restart_container(request): utc_time = datetime.strptime(started_at, UTC_FORMAT) delta = (datetime.now() - utc_time).seconds except Exception as e: - delta = '' + delta = '请确认项目是否在容器中运行?' if get_update_logs(): update = 'false' update_tips = '目前您使用的是最新版本!' @@ -210,6 +210,7 @@ def do_update(request): print(data[2]) print(data[0].get('url')) xpath_update = [] + print('更新规则中,返回结果为True为新建,为False为更新,其他是错误了') for site in data: if site.get('pk'): del site['pk'] diff --git a/templates/auto_pt/restart.html b/templates/auto_pt/restart.html index e6e89de..f215a21 100644 --- a/templates/auto_pt/restart.html +++ b/templates/auto_pt/restart.html @@ -134,8 +134,6 @@ type: 'success', message: res.data.msg }); - location.reload() - } else { console.log(res) this.$message({ @@ -143,7 +141,6 @@ message: res.data.msg }); } - }).catch(res => { this.$message({ type: 'error',