This commit is contained in:
@@ -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