Photo browser in vue not display the image

im using photo browser in vue, i call api call using axios and succeed to bind items in element except the photo browser. i tried many times with different code and realize inside photo browser my items is undefined, but in picture above in chrome console it showed the log but in app doesn’t display anything. please help!


async created() {
    let decode = this.$jwt.decode(localStorage.getItem('token'));
    this.decoded = decode.userId;
    let result = await axios().get('/lapor/' +;
    this.marker = L.latLng([0].lat_lapor,[0].long_lapor); = L.latLng([0].lat_lapor,[0].long_lapor);
    this.items =[0];

    let url = this.baseURL +[0].foto_lapor;
    console.log('ref', this.$refs.fotolapor.src); = url;


Do it in mounted hook instead, and add this line after:

... = url;
this.$ = [url]

Or just add v-if="photo" to <f7-photo-browser component

1 Like

thank you sir, i just added v-if="photo" but i still tried it in created hook and its works like charm :smile: