What if vue watch requests a lot of data frequently?

I call a method afun ()
to request data in created, and then watch monitors the data returned by afun, and then requests other data
, which creates a problem that the interface needs to be requested many times per load.
how to limit

May.04,2022

_ debounce (this.getAnswer, 500)
_ .debounce is a function that limits the operation frequency through Lodash. To learn more about the _ .debounce function (and its close relative _ .throttle ), please refer to

how to solve it?

Menu