код
                  
                  
                  methods: {
                  
                  
                      async updateMarks() {await this.getMarks().then(res => this.marks = res)}
                  
                  
                    },
                  
                  
                    mounted() {
                  
                  
                      clearInterval(this.timeout)
                  
                  
                      this.timeout = () => setInterval(() => this.updateMarks(), 5000)
                  
                  
                      this.updateMarks().then(() => this.timeout())
                  
                  
                  
                  
                  
                      this.settings.coords = Object.values(this.getMapCenter)
                  
                  
                    },
                  
                  
                    beforeDestroy() {
                  
                  
                      clearInterval(this.timeout)
                  
                  
                    }
                  
                  
                
потому что ты в таймаут записываешь функцию
Обсуждают сегодня