From 6ab540c4405007e17b121a7cf5cad723a8a18d63 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 21 Jun 2021 17:48:45 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-721=20fix:=20severity=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=80=89=E7=AC=AC=E4=B8=80=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/rightBox/alertRuleBox.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue index 5a120c34a..19a5f13f3 100644 --- a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue @@ -282,6 +282,9 @@ export default { this.$get('alert/severity', { pageNo: 1, pageSize: -1 }).then(response => { if (response.code == 200) { this.severityData = response.data.list + if (!this.editAlertRule.id && this.severityData.length > 0) { + this.editAlertRule.severityId = this.severityData[0].id + } } }) },