报错
报错内容
vue.js:634 [Vue warn]: Error in callback for watcher "list": "Error: `setOption` should not be called during main process.
报错截图
原因
错误原因
this指向不对
错误代码
解决方案
使用箭头函数或者使用 that = this 形式
vue.js:634 [Vue warn]: Error in callback for watcher "list": "Error: `setOption` should not be called during main process.
this指向不对
使用箭头函数或者使用 that = this 形式