que se vean las imagenes sin extension

This commit is contained in:
Jaume Solís 2024-04-16 12:54:36 +02:00
parent 4ae0de0548
commit ac8fbfb4ad
1 changed files with 3 additions and 2 deletions

View File

@ -128,10 +128,10 @@ export default defineComponent({
const checkImageValidity = (imageLink) => {
const validExtensions = [".jpg", ".jpeg", ".png"];
if (imageLink) {
/*if (imageLink) {
const extension = imageLink.substring(imageLink.lastIndexOf("."));
return validExtensions.includes(extension.toLowerCase());
}
}*/
return true;
};
@ -182,6 +182,7 @@ export default defineComponent({
<div class="product-content">
<header class="product-content-header">
<h3 class="product-content-title subtitle">
{{ products.current?.image }}
{{ products.current?.name }}
<q-skeleton type="rect" v-if="!products.current?.name" />
</h3>