zksu
/
WEB
forked from yoone/WEB
1
0
Fork 0

refactor(DictItemImportButton): 移除冗余的成功检查逻辑

该逻辑已在API层处理,无需在前端重复检查
This commit is contained in:
tikkhun 2026-01-16 15:58:17 +08:00
parent af1cebe29d
commit 49e3049681
1 changed files with 0 additions and 6 deletions

View File

@ -52,12 +52,6 @@ const DictItemImportButton: React.FC<DictItemImportButtonProps> = ({
});
}
// 检查返回结果是否包含 success 字段
if (result && result.success !== undefined && !result.success) {
throw new Error(result.message || '导入失败');
}
onSuccess?.(result);
// 显示导入结果详情
showImportResult(result);