fix(04): no date time img select product

This commit is contained in:
puriphatt 2024-08-15 17:48:27 +07:00
parent f322e7fc27
commit 91c9dfaa95

View file

@ -32,6 +32,8 @@ withDefaults(
index?: number;
isDisabled?: boolean;
noTimeImg?: boolean;
}>(),
{
isSelected: false,
@ -189,7 +191,11 @@ withDefaults(
class="col rounded q-my-md items-center justify-center flex"
style="background-color: transparent"
loading="lazy"
:src="`${baseUrl}/${data?.type === 'service' ? 'service' : 'product'}/${data?.id}/image?ts=${Date.now()}`"
:src="
`${baseUrl}/${data?.type === 'service' ? 'service' : 'product'}/${data?.id}/image`.concat(
noTimeImg ? '' : `?ts=${Date.now()}`,
)
"
>
<template #error>
<div