feat: 使用concurrently实现跨平台同时启动前后端

refactor(models): 优化模型初始化逻辑避免重复同步
refactor(OperationLog): 将createdAt索引改为operateTime
docs: 添加一次性启动解决方案文档
This commit is contained in:
zhang1106
2026-01-20 15:19:09 +08:00
parent a2f0032bad
commit ea1a855112
5 changed files with 332 additions and 9 deletions
+11 -4
View File
@@ -3,12 +3,19 @@
"version": "1.0.0",
"description": "IDC设备管理系统",
"scripts": {
"start": "npm run start:backend & npm run start:frontend",
"start": "concurrently \"npm run start:backend\" \"npm run start:frontend\"",
"start:backend": "cd backend && npm run dev",
"start:frontend": "cd frontend && npm run dev",
"install:all": "npm install && cd backend && npm install && cd ../frontend && npm install"
},
"keywords": ["idc", "device", "management"],
"keywords": [
"idc",
"device",
"management"
],
"author": "",
"license": "MIT"
}
"license": "MIT",
"devDependencies": {
"concurrently": "^9.2.1"
}
}