Merge pull request #615 from RickCole21/master

image fix
This commit is contained in:
liaoxuezhi 2020-05-25 15:48:22 +08:00 committed by GitHub
commit cc8f8e0c16

View File

@ -308,13 +308,13 @@ export default class ImageControl extends React.Component<
name: file.name
}));
this.setState({
files: this.files = multiple
? this.files.concat(files)
: this.files.length
? this.files
: files.slice(0, 1)
});
// this.setState({
// files: this.files = multiple
// ? this.files.concat(files)
// : this.files.length
// ? this.files
// : files.slice(0, 1)
// });
env.alert(
`您添加的文件${files.map(