NEZ-721 fix: severity默认选第一个

This commit is contained in:
chenjinsong
2021-06-21 17:48:45 +08:00
parent f135c671c1
commit 6ab540c440

View File

@@ -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
}
}
})
},