image增加初始值时编辑情况

This commit is contained in:
catchonme 2020-01-16 15:16:01 +08:00
parent eea00f0a83
commit 25ede26879

View File

@ -487,13 +487,11 @@ export default class ImageControl extends React.Component<
}
editImage(index: number) {
const {multiple} = this.props;
const files = this.files;
this.setState({
cropFile: {
preview: files[index].preview as string,
preview: files[index].preview || files[index].url as string,
state: 'init'
}
});