- 移除handleUploadSuccess函数的fileKey、fileUrl和file参数,简化函数签名 - 保持头像上传成功提示功能不变
@@ -101,7 +101,7 @@ const AvatarSelector: React.FC<AvatarSelectorProps> = ({
setSelectedFile(null);
};
- const handleUploadSuccess = (fileKey: string, fileUrl: string, file: any) => {
+ const handleUploadSuccess = () => {
toast.success('头像上传成功!请从列表中选择新上传的头像');