Error in callback for watcher "xxx": "TypeError: Cannot read property 'call' of undefined"
报错
代码
public tableData: Array<object> = [];
修改后代码
public _tableData: Array<object> = [];
get tableData(){
return this._tableData;
}
set tableData(newValue:Array<object>){
this._tableData = newValue;
}
不知道为啥修改成这样就不报错了。。。