карта ПВЗ
All checks were successful
Deploy / build (push) Successful in 2m22s

This commit is contained in:
alsaze
2025-10-15 15:15:28 +03:00
parent d038b66c94
commit b06786ad96
8 changed files with 18032 additions and 2180 deletions

View File

@@ -7,7 +7,7 @@
class="card"
@click="router.push(`/product/${product.id}`)"
>
<img class="card__image" :src="product?.images[0]?.src" alt="card?.image">
<img class="card__image" :src="product?.images?.[0]?.src" alt="card?.image">
<div class="card__description">
<div>{{ product?.name }}</div>

View File

@@ -1,8 +1,16 @@
<template>
<div>
<PvzMap :pickup-points="pickupPoints" />
</div>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import { ref } from 'vue'
import PvzMap from '~/components/PvzMap.vue'
const pickupPoints = ref([])
const { data } = useFetch('/api/yandex')
pickupPoints.value = data.value?.points
console.log(pickupPoints?.value)
</script>
<style lang="scss"></style>