From a96904ea8f6bde523ecf3e84372d7064b95d68b9 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 30 Aug 2022 14:15:55 +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 --- templates/auto_pt/restart.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/auto_pt/restart.html b/templates/auto_pt/restart.html index b610b0a..e6e89de 100644 --- a/templates/auto_pt/restart.html +++ b/templates/auto_pt/restart.html @@ -22,7 +22,7 @@ {# 刷新页面#} - 更新 +{# 更新#} 更新 重启 @@ -134,6 +134,8 @@ type: 'success', message: res.data.msg }); + location.reload() + } else { console.log(res) this.$message({ @@ -141,13 +143,13 @@ message: res.data.msg }); } + }).catch(res => { this.$message({ type: 'error', message: "重启失败!" }); }) - location.reload() }).catch(res => { {#console.log(res)#} @@ -175,6 +177,8 @@ type: 'success', message: res.data.msg }); + location.reload() + } else { console.log(res, 2) this.$message({ @@ -189,7 +193,6 @@ message: "更新失败!" }); }) - location.reload() }).catch(res => { console.log(res)