0👍
You can assign state attribute to new object to make it reactive:
updateOptionValue(state, { index, optionIndex, value }) {
let values = state.formFieldList[index].schema.values;
let labelName = values[optionIndex].labelName;
values[optionIndex] = {
value,
labelName
}
state.formFieldList = JSON.parse(JSON.stringify(state.formFieldList)) // assign new object
}
- [Vuejs]-Axios setting response data in vue component variable but variable not displaying data on browser
- [Vuejs]-Vue.js 2 filter is not working with data table
Source:stackexchange.com