release: bump version to 2.1.0 and update changelog

更新了所有包的版本号为2.1.0
This commit is contained in:
zhang1106
2026-06-12 16:09:07 +08:00
parent 1b9a5571ae
commit 8d600e084b
6 changed files with 24 additions and 7 deletions
+17
View File
@@ -4,6 +4,23 @@
---
## [2.1.0] - 2026-06-12
### 新增功能
#### 设备字段必填规则与可见性同步
- 新增动态 Joi Schema 生成器(`dynamicDeviceSchema.js`),设备创建/编辑时从 `DeviceField` 表动态读取字段配置
- 前端设备表单(`DeviceFormModal`)完全适配字段管理配置,取消 `rackId/position/height` 的硬编码排除
- 新增字段管理页面防护,强制锁定系统核心字段(`name`/`serialNumber`/`position`/`height`)的必填和可见性开关
- 同步前端默认常量与后端 `initDeviceFields.js` 一致(`deviceId` required 改为 `false``powerConsumption` required 改为 `true`
### 修复
- 修复字段管理页面修改配置后,设备添加/编辑页面配置不生效的问题
- 修复 `powerConsumption` 前后端默认值不一致的问题
---
## [2.0.0] - 2026-05-06
### 新增功能
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "idc-backend",
"version": "2.0.0",
"version": "2.1.0",
"description": "IDC设备管理系统后端",
"scripts": {
"start": "node server.js",
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "idc-frontend",
"version": "2.0.0",
"version": "2.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "idc-frontend",
"version": "2.0.0",
"version": "2.1.0",
"dependencies": {
"@ant-design/icons": "^6.1.0",
"@ant-design/icons-svg": "^4.4.2",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "idc-frontend",
"version": "2.0.0",
"version": "2.1.0",
"description": "IDC设备管理系统前端",
"scripts": {
"start": "vite",
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "idc-device-management",
"version": "2.0.0",
"version": "2.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "idc-device-management",
"version": "2.0.0",
"version": "2.1.0",
"license": "MIT",
"dependencies": {
"@ant-design/cssinjs": "^2.1.2",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "idc-device-management",
"version": "2.0.0",
"version": "2.1.0",
"description": "IDC设备管理系统",
"scripts": {
"start": "concurrently \"npm run start:backend\" \"npm run start:frontend\"",