NEZ-2943 fix:Silences-Alert页面,删除告警报错,Request method 'DELETE' not supported
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user