我有一个数组:
basicForm.schema = [
{},
{} // I want to watch only this
]
我试着这么做:
‘basicForm.schema[1].value’: {
handler (schema) {
const plan = schema.find(field => {
return field.name === ‘plan’
})
},
deep: true
},
但我犯了一个错误:
vue.js?3de6:573[Vue warn]:监视路径失败:
正确的方法是什么?