2👍
maybe you can try to use setInterval()
on your getData function for more explanation you can check on this question Vue js triggering a method/function every x seconds
and this a setInterval()
usage documentation https://developer.mozilla.org/en-US/docs/Web/API/setInterval
- [Vuejs]-Get value image input file with vue?
- [Vuejs]-How to have accessible variables in component methods
Source:stackexchange.com