Vue改造异步请求为同步请求 先看一下同步的请求: getData(){ getInfo(this.params).then(res=>{ if(res.code=="200"){ this.data=res.data; } }) } 改造为异步: read more