diff --git a/apps/ui/src/features/SitesView.tsx b/apps/ui/src/features/SitesView.tsx
index f499869..e848a89 100644
--- a/apps/ui/src/features/SitesView.tsx
+++ b/apps/ui/src/features/SitesView.tsx
@@ -566,7 +566,6 @@ export const SitesView = ({
class="w-full rounded-lg border border-stone-200 bg-white px-3 py-2.5 text-sm text-stone-900 focus:border-amber-400 focus:outline-none focus:ring-2 focus:ring-amber-200"
id="site-type"
name="site_type"
- value={siteForm.site_type}
onChange={(event) =>
onFormChange({
site_type: (event.currentTarget as HTMLSelectElement)
@@ -574,12 +573,42 @@ export const SitesView = ({
})
}
>
-
-
-
-
-
-
+
+
+
+
+
+
@@ -639,7 +668,6 @@ export const SitesView = ({
class="w-full rounded-lg border border-stone-200 bg-white px-3 py-2.5 text-sm text-stone-900 focus:border-amber-400 focus:outline-none focus:ring-2 focus:ring-amber-200"
id="site-status"
name="status"
- value={siteForm.status}
onChange={(event) =>
onFormChange({
status: (event.currentTarget as HTMLSelectElement)
@@ -647,8 +675,18 @@ export const SitesView = ({
})
}
>
-
-
+
+
diff --git a/helloagents/CHANGELOG.md b/helloagents/CHANGELOG.md
index 0189c70..e301d8c 100644
--- a/helloagents/CHANGELOG.md
+++ b/helloagents/CHANGELOG.md
@@ -4,6 +4,9 @@
### 微调
+- **[admin-ui]**: 编辑站点时站点类型/状态选择与当前值一致
+ - 类型: 微调(无方案包)
+ - 文件: apps/ui/src/features/SitesView.tsx:567-689
- **[ci]**: push 变更检测在 before 提交缺失时按全量变更处理并拉全历史
- 类型: 微调(无方案包)
- 文件: .github/workflows/deploy.yml:45-100