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)