import defaultImg from '#/assets/empty/404.png'

export default function errImg(el: HTMLImageElement) {
  // eslint-disable-next-line unicorn/prefer-add-event-listener
  el.onerror = () => {
    el.src = defaultImg
  }
}
