1👍
✅
Please check this – Vue cannot detect the changes to an array if you using it like
this.withDocCostTotals[years - 1] = value;
you should use Vue.set
:
Vue.set(this.withDocCostTotals, years - 1, value);
Source:stackexchange.com