From e937b24b4c9bbda2e587b3949e3490a30515f252 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 29 Jun 2023 17:20:03 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2943=20fix=EF=BC=9ASilences-Alert=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E5=88=A0=E9=99=A4=E5=91=8A=E8=AD=A6=E6=8A=A5?= =?UTF-8?q?=E9=94=99=EF=BC=8CRequest=20method=20'DELETE'=20not=20supported?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/bottomBox/tabs/alertMessageTabNew.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue index 31c382d36..4ea39c3fa 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue @@ -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