vuex store doesn't update component
问题 I'm new to vue, so I'm probably making a rookie error. I have a root vue element - raptor.js: const Component = { el: '#app', store, data: { productList: store.state.productlist }, beforeCreate: function () { return store.dispatch('getProductList', 'getTrendingBrands'); }, updated: function (){ console.log(111); startSlider(); } }; const vm = new Vue(Component); Using this template <div class="grid-module-single popular-products" id="app"> <div class="row"> <div class="popular-items-slick col