getHomeInfo () { this.axios.get(‘/api/index.json?city=‘ + this.city) .then(this.getHomeInfoSucc) }
axios请求接口的时候带一个参数
原文:https://www.cnblogs.com/-constructor/p/12317845.html