Commit dd0abdee by 姜雷

修复单图图片显示问题

parent 1308c934
......@@ -43,16 +43,11 @@ class Perview extends Component {
afterChange={this.onChangeHandle}
>
{list.length === 1 ? (
<div>
<img
className={styles.carouselImg}
src={list[0].url || list[0]}
alt=""
/>
<div className={styles.carouselImg}>
<img src={list[0].url || list[0]} alt="" />
</div>
) : (
list.map(
(item, index) =>
list.map((item, index) =>
item ? (
<img
className={styles.carouselImg}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment