![css](https://habrastorage.org/r/w120/webt/5a/6c/29/5a6c295a5de0d066850531.png)
CSS
4
Вклад в тег
<div v-for="cat in categories" :key="cat.id">
<app-form :category="cat" /> //тут весь компонент у которого будет свой show
</div>
getCurrentPosition () {
return new Promise((resolve, reject) => {
navigator.geolocation.getCurrentPosition(position => {
resolve(position.coords)
});
})
}
async mounted() {
this.getCurrentTime()
const coords = await this.getCurrentPosition()
this.getCurrentWeather(coords)
setInterval(() => this.getCurrentWeather(), 2000)
},