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
+2 -2
View File
@@ -81,8 +81,8 @@ const OperationLog = sequelize.define('OperationLog', {
{ fields: ['userId'] },
{ fields: ['action'] },
{ fields: ['module'] },
{ fields: ['createdAt'] },
{ fields: ['userId', 'createdAt'] }
{ fields: ['operateTime'] },
{ fields: ['userId', 'operateTime'] }
]
});