king
2022-10-12 53b9fb93d0376eb02bb996935f1720b4e95cd897
src/components/Image/index.jsx
@@ -6,6 +6,8 @@
    let Img = new Image()
    Img.src = this.props.url
    
    if (!this.ImageWrapDom) return
    if (Img.complete) {
      this.setSize(Img.width, Img.height)
    } else {
@@ -20,6 +22,7 @@
  }
  setSize = (width, height) => {
    if (!this.ImageWrapDom) return
    const { clientWidth, clientHeight } = this.ImageWrapDom
    if (!clientWidth || !clientHeight || !width || !height) return