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'
}).then(() => {
let url = ''
if (this.from === fromRoute.alertSilence) {
this.alertSilenceUrl = `/alert/silence/${this.obj.id}/rel`
url = this.alertSilenceUrl
} else {
url = this.url
}
// if (this.from === fromRoute.alertSilence) {
// this.alertSilenceUrl = `/alert/silence/${this.obj.id}/rel`
// url = this.alertSilenceUrl
// } else {
// url = this.url
// }
url = this.url
this.$delete(url + '?ids=' + row.id + '&state=' + row.state).then(response => {
if (response.code === 200) {
self.delFlag = true