Open ys2n opened 6 years ago
Any updates on this?
you can always use
$(img).on('error', () => { $(img).attr('src', 'fallback-url') })
:)
I use it in Vue, but by default, the width and height of the image are all 0, so it cannot be rendered on the page imgErrorimg(e){ e.target.src = require('../../assets/images/default/picture.svg'); }
Currently, if the image in a gallery is missing (e.g. a 404), the image is omitted. Is there a way to use a replacement image instead?