cambio para que se cargue de primeras el carousel

This commit is contained in:
Jaume Solís 2024-05-16 15:41:25 +02:00
parent 9836fc1b5a
commit 196931b2c1
2 changed files with 4 additions and 2 deletions

View File

@ -43,6 +43,8 @@ export default defineComponent({
} = usePostalCalendar({ type: "home" });
const { navPos, screenWidth, slide, target } = useVerticalCarouselImgs();
console.log(slide);
const formStore = useFormStore();
const { getItemSession } = useLocalStorage();
const localValues = getItemSession("availability");
@ -100,7 +102,7 @@ export default defineComponent({
<div class="vertical-carousel-content">
<header class="carousel-content-header">
<h1 class="carousel-header-title">
{{ item.longName }}
{{ item.longName }} {{ `banner-${i}` }}
</h1>
</header>
</div>

View File

@ -10,7 +10,7 @@ export function useVerticalCarouselImgs() {
const target = ref(null);
const navPos = ref("bottom");
const slide = ref("style");
const slide = ref("banner-0");
onMounted(() => {
screenWidth.value = window.innerWidth;