mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
chore: 优化图片项的key 属性 (#7122)
* chore: tpl 初始用同步模版渲染后更新异步模版 Close: #7099 * chore: 优化图片项的key 属性
This commit is contained in:
parent
e27324e6c6
commit
36ed95419c
@ -568,6 +568,9 @@ export default class ImageControl extends React.Component<
|
||||
}
|
||||
|
||||
getFileKey(file: FileValue | FileX) {
|
||||
if (file.id) {
|
||||
return file.id;
|
||||
}
|
||||
if (this.fileKeys.has(file)) {
|
||||
return this.fileKeys.get(file);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user