fix: 修复机柜列表API路径并更新版本号

将机柜列表API路径从'/api/racks'修改为'/api/racks/all'以获取所有机柜数据
同时将package.json中的版本号从1.0.0更新为1.0
This commit is contained in:
zhang1106
2026-04-10 13:48:44 +08:00
parent 5450d5f05a
commit 2f00fe327c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ const IdleDeviceManagement = () => {
const fetchRacks = async () => {
try {
const response = await axios.get('/api/racks', { params: { pageSize: 100 } });
const response = await axios.get('/api/racks/all');
setRacks(response.data.racks || []);
} catch (error) {
console.error('获取机柜列表失败', error);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "idc-device-management",
"version": "1.0.0",
"version": "1.0",
"description": "IDC设备管理系统",
"scripts": {
"start": "concurrently \"npm run start:backend\" \"npm run start:frontend\"",