[Vuejs]-Vue.js deep watch scope issue?

4👍

The problem is that you defined the watch handler with an arrow function, which means this inside this function is not the component, but the global scope.

Solution: Use a normal function.

handler(newValue) {

Leave a comment