fix previewFile error in uploadList

This commit is contained in:
afc163 2015-12-28 13:07:47 +08:00
parent ddcd8ad701
commit 5476bf1afe

View File

@ -29,6 +29,9 @@ export default React.createClass({
this.props.onRemove(file);
},
componentDidUpdate() {
if (this.props.listType !== 'picture') {
return;
}
this.props.items.forEach(file => {
if (typeof document === 'undefined' ||
typeof window === 'undefined' ||