I have an array:
basicForm.schema = [
{},
{} // I want to watch only this
]
I tried to do this:
โbasicForm.schema[1].valueโ: {
handler (schema) {
const plan = schema.find(field => {
return field.name === โplanโ
})
},
deep: true
},
But I got this error:
vue.js? 3de6: 573 [Vue warn]: View path error: "basicForm.schema [1]" The observer only accepts simple paths separated by periods. For full control, use the function.
What is the right way to do this?
source
share