🐛 修复轮播图无非跳转链接的问题

This commit is contained in:
xujiang 2020-12-01 13:23:05 +08:00
parent 9f76aa122b
commit 932c9bb816

View File

@ -10,7 +10,9 @@ const XCarousel = memo((props: ICarouselConfig) => {
return imgList.map((item, i) => {
return (
<div className={styles.carousel__item__pic} key={+i}>
<img src={item.imgUrl.length > 0 ? item.imgUrl[0].url : ''} alt="" />
<a href={item.link}>
<img src={item.imgUrl.length > 0 ? item.imgUrl[0].url : ''} alt="" />
</a>
</div>
);
});