handler(newVal, oldVal){ if (newVal > 0) { this.ableAdd = true this.getListData() } else { this.ableAdd = false this.tableData = [] this.total = 0 } }, immediate: true, deep: true
https://blog.csdn.net/wandoumm/article/details/80259908