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)