在vuex中访问vuejs实例失败

时间:2017-10-28 08:37:47

标签: javascript vuejs2

在我的getter中,我想通过this访问vuejs实例,但它失败了

const getters:{
   chatbodyval: (state, getters) => {

         //here access this eg
       this.$cookie.get(types.LIVE_CHAT_STARTED) //this fails


    }
 }

是否可以在vuex

中访问此实例的vuejs

0 个答案:

没有答案
相关问题