重构(服务监控): 清空记录增加二次确认;

pull/19/head
xt12321 2021-04-24 15:58:16 +08:00
parent 88fa332916
commit 006d4d7a20
1 changed files with 10 additions and 4 deletions

View File

@ -322,11 +322,17 @@ export default {
/** 清除监控日志 */
cleanMonitorLogsInfo() {
this.$confirm('此操作将删除所有的监控记录,是否继续?', '提示', {
confirmButtonText: '确定删除',
cancelButtonText: '放弃'
}).then(() => {
cleanMonitorLog().then(results => {
this.msgSuccess(results.msg || '清除记录成功!')
}).catch(error => {
this.$message.warning(error.msg || '清除记录失败,请重试!')
})
}).catch(() => {
})
},
/** 获取监控配置信息 */