[Fix][UI] fix bug where warn group name not display (#11429)

This commit is contained in:
Devosend 2022-08-11 20:58:56 +08:00 committed by GitHub
parent 20b87ee761
commit d02cf85b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -43,10 +43,7 @@ export default defineComponent({
const getAlertGroupList = () => {
listAlertGroupById().then((res: any) => {
alertGroupListRef.value = res.map((item: any) => ({
label: item.groupName,
value: item.id
}))
alertGroupListRef.value = res
})
}
@ -83,7 +80,7 @@ export default defineComponent({
const o = _.filter(alertGroupListRef.value, (v) => v.id === id)
if (o && o.length) {
return o[0].code
return o[0].groupName
}
return '-'
})