mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
1. 优化更新规则逻辑,日志中打印规则更新记录
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
</span>
|
||||
<span style="float: right;margin-top: -10px">
|
||||
{# <el-button type="primary" @click="do_refresh">刷新页面</el-button>#}
|
||||
<el-button type="success" @click="do_update">更新</el-button>
|
||||
{# <el-button type="success" @click="do_update">更新</el-button>#}
|
||||
<el-button type="success" @click="do_update" v-if="update">更新</el-button>
|
||||
<el-button type="danger" @click="do_restart">重启</el-button>
|
||||
</span>
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user