vuex(报错)_vue.esm.js?efeb:628 [Vue warn]: Error in render: "TypeError: Cannot read property 'length' of undefined" found in ---> <ShopList> at src/components/ShopList/ShopList.vue <Msite> at s

I. Introduction                                                                                       

In previous projects done today, I found a bug ah! !

Vuex request by the data, and the console can print out the requested data, but when rendering reported the following

          

 

Second, the solution                                                                                

Find here a small increase when checking codes {a}

 

 

 

Guess you like

Origin www.cnblogs.com/xxm980617/p/11246109.html