feat: เพิ่ม loading lazy
This commit is contained in:
parent
7f0103db2a
commit
2034362c6d
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue