fix: 完善记录错误状态与缓存失效策略

This commit is contained in:
que01 committed 2026-10-15 13:58:39 +08:00
1 parent 476e3d93dd
commit 8973338c64
13 files changed
+53 -29

No files matched your search

+2 -3
View File
@@ -66,9 +66,8 @@ export function ImageUrlField({ id, value, onChange, placeholder, scope }: Image
});
if (!response.ok) throw new Error(`upload failed: ${response.status}`);
onChange?.(presign.publicUrl);
} catch {
setStorageStatus("unavailable");
message.error("图片上传失败,请检查对象存储后重试");
} catch (error) {
message.error(error instanceof Error ? error.message : "图片上传失败,请重试");
} finally {
setUploading(false);
}