fix: 修复分组导入bug

This commit is contained in:
chaos-zhu
2025-11-01 19:19:10 +08:00
parent bf5fc0b800
commit ec9f6ecda8
+2 -1
View File
@@ -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)
}
})