feat: เพิ่ม loading lazy

This commit is contained in:
Net 2024-06-21 14:50:20 +07:00
parent 7f0103db2a
commit 2034362c6d

View file

@ -139,7 +139,8 @@ withDefaults(
:style="`background-color: var(${typeProduct === 'product' ? '--green-0' : '--orange-0'})`"
>
<q-img
:src="`${baseUrl}/product/${id}/image`"
loading="lazy"
:src="`${baseUrl}/${typeProduct === 'service' ? 'service' : 'product'}/${id}/image`"
style="height: 86px; max-width: 100px"
>
<template #error>