- {formGroupIds.map(id => (
-
- {getGroupLabel(id)}
-
-
- ))}
- {formGroupIds.length === 0 &&
未选择分组}
+ {/* 已选分组 */}
+
+ {formGroupIds.map(id => {
+ const group = availableGroups.find(g => g.id === id)
+ return (
+
+
+ {group ? group.name : `#${id}`}
+ {group && #{id}}
+
+
+
+ )
+ })}
+ {formGroupIds.length === 0 &&
未选择分组}
{/* 可选分组列表 */}
@@ -621,18 +626,13 @@ function ProfileCard({ profile, isActive, isActivating, groupNameCache, onActiva
{/* 参数摘要 */}
-
+
并发 {profile.concurrency}
优先级 {profile.priority}
- {parsedGroups.length > 0 && (
-
- 分组 {parsedGroups.map(id => groupNameCache[id] ? `${groupNameCache[id]} #${id}` : `#${id}`).join(', ')}
-
- )}
{profile.proxy_enabled && (
代理
@@ -640,6 +640,18 @@ function ProfileCard({ profile, isActive, isActivating, groupNameCache, onActiva
)}
+ {/* 分组列表 */}
+ {parsedGroups.length > 0 && (
+
+ {parsedGroups.map(id => (
+
+ {groupNameCache[id] || `#${id}`}
+ {groupNameCache[id] && #{id}}
+
+ ))}
+
+ )}
+
{/* 操作按钮 */}
{!isActive ? (