Merge remote-tracking branch 'baidu/master'

This commit is contained in:
2betop 2020-05-25 16:21:42 +08:00
commit 72254ea1b7

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(