From 56ff67bfc5f46849e46c5740d21bf9aa8dc8aee9 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Sun, 28 Aug 2022 22:54:09 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BC=98=E5=8C=96=E9=87=8D=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ptools/settings.py | 1 + templates/auto_pt/restart.html | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ptools/settings.py b/ptools/settings.py index b632ed0..c827792 100644 --- a/ptools/settings.py +++ b/ptools/settings.py @@ -183,6 +183,7 @@ SIMPLEUI_HOME_TITLE = 'PT一下你就知道' SIMPLEUI_HOME_ICON = 'fa fa-optin-monster' SIMPLEUI_HOME_INFO = False SIMPLEUI_LOGO = '/static/logo1.png' +SIMPLEUI_INDEX = '/tasks/restart' # SIMPLEUI配置 SIMPLEUI_CONFIG = { 'system_keep': True, diff --git a/templates/auto_pt/restart.html b/templates/auto_pt/restart.html index 00ebd74..05eb6b3 100644 --- a/templates/auto_pt/restart.html +++ b/templates/auto_pt/restart.html @@ -142,11 +142,14 @@ message: res.data.msg }); } + this.$router.go(0) }).catch(res => { + this.$router.go(0) this.$message({ type: 'error', message: "重启失败!" }); + }) }).catch(res => { @@ -182,6 +185,7 @@ message: res.data.msg }); } + this.$router.go(0) }).catch(res => { console.log(res, 3) this.$message({