watch监听对象遇坑

当以下数据,有一个变化,就重新调接口。

 formInline: {
        needTrain: '',
        trainResult: '',
        userNameSearch: '',
 }
 注意:handler后面不能写成箭头函数。箭头函数this指向函数定义者,普通函数this指向函数调用者。
原文地址:https://www.cnblogs.com/guwufeiyang/p/13890907.html