This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user