重构(服务监控): 清空记录增加二次确认;
parent
88fa332916
commit
006d4d7a20
|
@ -322,10 +322,16 @@ export default {
|
||||||
|
|
||||||
/** 清除监控日志 */
|
/** 清除监控日志 */
|
||||||
cleanMonitorLogsInfo() {
|
cleanMonitorLogsInfo() {
|
||||||
cleanMonitorLog().then(results => {
|
this.$confirm('此操作将删除所有的监控记录,是否继续?', '提示', {
|
||||||
this.msgSuccess(results.msg || '清除记录成功!')
|
confirmButtonText: '确定删除',
|
||||||
}).catch(error => {
|
cancelButtonText: '放弃'
|
||||||
this.$message.warning(error.msg || '清除记录失败,请重试!')
|
}).then(() => {
|
||||||
|
cleanMonitorLog().then(results => {
|
||||||
|
this.msgSuccess(results.msg || '清除记录成功!')
|
||||||
|
}).catch(error => {
|
||||||
|
this.$message.warning(error.msg || '清除记录失败,请重试!')
|
||||||
|
})
|
||||||
|
}).catch(() => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue