Skip to content

Commit 17d259a

Browse files
author
soliury
committed
fix bugs: customImage
1 parent 33fe1fe commit 17d259a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/base/CustomImage.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ export default class CustomImage extends Component {
6161
});
6262
}, leftTime);
6363
}
64+
else {
65+
this.setState({
66+
size: {
67+
width: w,
68+
height: h
69+
},
70+
isLoaded: true
71+
});
72+
}
6473
}, ()=> {
6574
this.setState({
6675
error: true

0 commit comments

Comments
 (0)