xujing 4 years ago
parent
commit
be0f5689ea
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/pages/fundManagement/components/Swiper.jsx

+ 1
- 1
src/pages/fundManagement/components/Swiper.jsx View File

@@ -47,7 +47,7 @@ const swiper = ({ list, onClose }) => {
47 47
                     <img src={closeImg} alt="" className={styles.close} onClick={onClose} />
48 48
                     <Carousel autoplay draggable>
49 49
                         {list.map((item, index) =>
50
-                            <img className={styles.swiperImg} style={{ borderRadius: '10px', objectFit: 'contain' }} src={item} alt="" />,
50
+                            <img className={styles.swiperImg} key={index} style={{ borderRadius: '10px', objectFit: 'contain' }} src={item} alt="" />,
51 51
                             // <img className={styles.swiperImg} style={{ width: '32vw', minWidth: '757px', height: '21.3vw', minHeight: '504px', borderRadius: '10px' }} src={item} alt="" />,
52 52
                         )}
53 53
                     </Carousel>