cannot read property 'dispatch' of undefined in Vuex

后端 未结 10 708
囚心锁ツ
囚心锁ツ 2020-12-30 03:51

I\'m trying to perform a dispatch on \'logOutUser\' in vuex store, and i\'m getting the following error message in respone:

TypeError: Cannot read pro

10条回答
  •  轮回少年
    2020-12-30 03:56

    If we are going to follow app structure suggested by vueX.

    Store will be injected automatically

    https://vuex.vuejs.org/guide/structure.html

提交回复
热议问题