axios请求接口的时候带一个参数

  getHomeInfo () {
      this.axios.get('/api/index.json?city=' + this.city)
        .then(this.getHomeInfoSucc)
    }

 尽量不要在父组件中  过多的操作子组件  最多操作 v-show :数据传递

posted @ 2020-02-16 17:56  容忍君  阅读(808)  评论(0)    收藏  举报