mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-10-07 15:57:53 +08:00
fix: 修复分组导入bug
This commit is contained in:
@@ -276,9 +276,10 @@ const groupHostList = computed(() => {
|
||||
})
|
||||
hostList.value.forEach(item => {
|
||||
const group = groupList.find(group => group.id === item.group)
|
||||
if (group) {
|
||||
if (group?.name) {
|
||||
res[group.name].push(item)
|
||||
} else {
|
||||
if (!res['默认分组']) res['默认分组'] = []
|
||||
res['默认分组'].push(item)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user