Vue watch calls the method in methods does not execute, displays undefined?

watchmethodsundefined,this

watch listens to the value passed by other components, and then calls the method in methods to get the data refresh list. The result is not executed. The value of this method is printed out as undefined, but there is this method in my printed this. What is the reason and how to solve it?

Mar.12,2021

your method does not return a value. Of course, it is undefined


to see if the data obtained from the API, that is, classifyList, has changed


how do you solve this problem when you call it again?

Menu