Page did not follow the array element replacement Vue dynamic display

Vue method to modify a particular element of the array and the page does not ring

 

 Alternatively goodsList no corresponding page, printing goodsList has been changed;

 

 

 

 

(Borrow https://www.cnblogs.com/belongs-to-qinghua/p/11112613.html FIG) 

Document clearly states that, vue can not detect the fluctuation of the array, but the document also pointed out the way to achieve the above requirements:

Vue.set(vm.goodList,i,result.goods);

 

 

 

Guess you like

Origin www.cnblogs.com/junzhu-bye/p/11913008.html