chore: 优化图片项的key 属性 (#7122)

* chore: tpl 初始用同步模版渲染后更新异步模版 Close: #7099

* chore: 优化图片项的key 属性
This commit is contained in:
liaoxuezhi 2023-06-08 22:06:45 +08:00 committed by GitHub
parent e27324e6c6
commit 36ed95419c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}