NEZ-2943 fix:Silences-Alert页面,删除告警报错,Request method 'DELETE' not supported

This commit is contained in:
zhangyu
2023-06-29 17:20:03 +08:00
parent 3c8904f224
commit e937b24b4c

View File

@@ -342,12 +342,13 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
let url = '' let url = ''
if (this.from === fromRoute.alertSilence) { // if (this.from === fromRoute.alertSilence) {
this.alertSilenceUrl = `/alert/silence/${this.obj.id}/rel` // this.alertSilenceUrl = `/alert/silence/${this.obj.id}/rel`
url = this.alertSilenceUrl // url = this.alertSilenceUrl
} else { // } else {
url = this.url // url = this.url
} // }
url = this.url
this.$delete(url + '?ids=' + row.id + '&state=' + row.state).then(response => { this.$delete(url + '?ids=' + row.id + '&state=' + row.state).then(response => {
if (response.code === 200) { if (response.code === 200) {
self.delFlag = true self.delFlag = true