fix: ServerForm 缺少 ssh_key/credential_id 字段, selIds.has→includes

This commit is contained in:
attacker committed 2026-06-19 01:27:31 +00:00
1 parent 29b3cd49a0
commit 346042a29c
2 files changed
+3 -1

No files matched your search

@@ -268,6 +268,8 @@ export function ServerManager() {
username: server.username || 'root',
auth_type: server.auth_type || 'password',
password: '',
ssh_key: '',
credential_id: null as number | null,
os: server.os || '',
cpu: String(server.cpu || ''),
memory: server.memory ? String(Math.round(server.memory / 1024)) : '', // MB → GB