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({