- Failed watching path: “XXXXX” Watcher only accepts simple dot-delimited paths. For full control, use a function instead.
this.$watch(
function () { // 第一个函数就是处理你要监听的属性,只要将其return出去就行
return this.commonData.children[0].children
},
function (old, valold) {
// 要执行的方法
}
)