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

前端 未结 5 2110
时光说笑
时光说笑 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 18:00

    I highly recommend importing axios on the vuex module (store and submodules), and using it for your http requests

提交回复
热议问题