fix(admin): 前端功能与安全修复(角色勾选/月视图新建/附件预览/考勤 late 等)
由 OCR(open-codereview.ai,deepseek-v4-flash)审查驱动修复: - Roles 多组勾选、Schedules 月视图新建、useDirtyGuard 稳定引用 - JinshujuMatchModal success:false、Attendance store 订阅、EditableCell Enter、DynamicChart 空数据、渲染期 ref - AttachmentsTab 附件预览不再 window.open(防存储型 XSS)+ 请求乱序防护 - 考勤 late 计入出勤率与主状态 Reviewed-by: OCR (open-codereview.ai)
This commit is contained in:
@@ -263,6 +263,16 @@ const EditableCell = <Value,>({
|
||||
return;
|
||||
}
|
||||
if (event.key === 'Enter' && editor !== 'textarea') {
|
||||
// 这些编辑器会自己消费 Enter(确认/提交选中值),不重复触发单元格保存
|
||||
if (
|
||||
editor === 'select' ||
|
||||
editor === 'multi-select' ||
|
||||
editor === 'tags' ||
|
||||
editor === 'date' ||
|
||||
editor === 'date-range'
|
||||
) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
await save();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user