How to use vue-resource ($http) and vue-router ($route) in a vuex store?

前端 未结 5 2109
时光说笑
时光说笑 2020-12-16 17:18

Before I was getting movie detail from the component\'s script. The function first check whether the movie ID of the store is same as of the route\'s param movie ID. If its

5条回答
  •  温柔的废话
    2020-12-16 17:55

    To access the vue instance in the store use this._vm.
    But as Amresh advised do not use things like $router in vuex

提交回复
热议问题