为什么页面加载的时候发请求会有undefined,怎么解决

这是小程序的页面回发一个请求获取图片,图片的地址是上个页面接收过来的,然后页面在完后都可以加载出来,获取上个页面传过来的数据只能在onlload码?
页面一开始就会发一个请求,显示undefind,可以解决码?


```html
<!-- 轮播图 -->
    <view>
        <swiper class="banners" indicator-color="rgba(0, 0, 0, .3)" indicator-active-color="#D43C33" autoplay circular>
            <swiper-item>
                <image src="{{'http://localhost/phpsaomaserver/uploads/' +merchant.swiperImage1}}"></image>
            </swiper-item>
            <swiper-item>
                <image src="{{'http://localhost/phpsaomaserver/uploads/' +merchant.swiperImage2}}"></image>
            </swiper-item>
            <swiper-item>
                <image src="{{'http://localhost/phpsaomaserver/uploads/' +merchant.swiperImage3}}"></image>
            </swiper-item>
        </swiper>
    </view>


```

F12 查看undefined 那个是未定义还是多写了‘,看一下,望采纳,谢谢。

onInit和onload可以接收上个页面的参数
看看报错,什么undefined,是没接收到参数吗

额,没看懂。
能想到的是情景是,轮播图组件和用轮播图的页面同时加载了?