king
2021-08-08 5ed69b4bb3416ec61abf424375af8650864dbdfa
src/components/imgScale/index.jsx
@@ -39,12 +39,14 @@
    if (url || !src) return
    let index = 0
    let _list = []
    if (list.length > 0) {
    if (list.length > 1) {
      index = list.indexOf(src)
      _list = list
    }
    this.setState({url: src, className: 'opening', list, scale: 1, rotate: 0, index})
    this.setState({url: src, className: 'opening', list: _list, scale: 1, rotate: 0, index})
    setTimeout(() => {
      this.setState({className: 'open'})
    }, 300)