fix: update origin image uid for second edit

This commit is contained in:
jialin
2025-01-15 22:58:27 +08:00
parent c599cab14a
commit 17da790651
@@ -292,6 +292,7 @@ const GroundImages: React.FC<MessageProps> = forwardRef((props, ref) => {
return pre.map((item) => { return pre.map((item) => {
return { return {
...item, ...item,
uid: setMessageId(),
dataUrl: image dataUrl: image
}; };
}); });
@@ -830,6 +831,7 @@ const GroundImages: React.FC<MessageProps> = forwardRef((props, ref) => {
<div <div
style={{ style={{
height: 125, height: 125,
maxWidth: 125,
maxHeight: 125 maxHeight: 125
}} }}
key={item.uid} key={item.uid}
@@ -838,7 +840,7 @@ const GroundImages: React.FC<MessageProps> = forwardRef((props, ref) => {
{...item} {...item}
height={125} height={125}
maxHeight={125} maxHeight={125}
key={item.uid} maxWidth={125}
preview={item.preview} preview={item.preview}
loading={item.loading} loading={item.loading}
autoSize={false} autoSize={false}