[Solved] Vuex error: Error in callback for watcher “function() {return this._data.$$state}”

this._data.$$ state

Error content: error in callback for watcher "function() {return this._data.$$state}"

I also encountered this problem and tried to solve it. You can check whether the routing array object is stored in vuex and whether the array is directly referenced in state. You may need to make a deep copy before using it– razor

Note: JS array is reference assignment by default, and vuex can only change the state through mutation or action, bell The warnlist of the Vue component modifies the value of vuex


Similar Posts: