重构(服务监控): 清空记录增加二次确认;
parent
88fa332916
commit
006d4d7a20
|
@ -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(() => {
|
||||
})
|
||||
},
|
||||
|
||||
/** 获取监控配置信息 */
|
||||
|
|
Loading…
Reference in New Issue