diff --git a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue index 907e376d7..27fdaebe7 100644 --- a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue @@ -114,7 +114,7 @@ @@ -376,6 +376,9 @@ export default { } } const nzInr = (rule, value, callback) => { + if (!this.showSnmpTrap) { + callback() + } if (value < 15) { callback(new Error(this.$t('alert.config.inrError'))) } else { @@ -617,7 +620,7 @@ export default { this.showSnmpTrap = false // showSnmpTrap 为 false 时,展示 OID this.showMetrics = false this.editAlertRule.inr = '' - this.editAlertRule.last = '' + this.editAlertRule.last = '15' this.editAlertRule.unit = 0 this.editAlertRule.operator = '' this.editAlertRule.threshold = ''