Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix:修改team配置里下拉框空白项

openJiuwen-bot1a1c85f18bc9
diff --git a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx
index 028bfb0b4b..91af93c730 100644
--- a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx
+++ b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx
@@ -1792,7 +1792,6 @@ function TeamItemSection({
onChange={(e) => updateTeamField(field, e.target.value)}
className="flex-1 rounded border border-border bg-bg px-2 py-1 text-text text-xs"
>
- <option value=""></option>
<option value="persistent">{t("config.team.lifecyclePersistent")}</option>
<option value="temporary">{t("config.team.lifecycleTemporary")}</option>
</select>
@@ -1802,8 +1801,8 @@ function TeamItemSection({
onChange={(e) => updateTeamField(field, e.target.value)}
className="flex-1 rounded border border-border bg-bg px-2 py-1 text-text text-xs"
>
- <option value=""></option>
<option value="build_mode">{t("config.team.teammateModeBuild")}</option>
+ <option value="plan_mode">{t("config.team.teammateModePlan")}</option>
</select>
) : field === "spawn_mode" ? (
<input