feat: 服务器管理前后端字段对齐 — 移除CMDB幽灵字段 + SSH导向表单 + GB→MB内存转换

This commit is contained in:
attacker committed 2026-06-14 05:11:15 +08:00
1 parent 56e0cb15ac
commit a1237587f6
4 files changed
+146 -187

No files matched your search

+4
View File
@@ -148,6 +148,10 @@ func (h *ServerHandler) CreateServer(c *gin.Context) {
Status: "stopped",
}
if req.Status != "" {
server.Status = req.Status
}
if server.Port == 0 {
server.Port = 22
}