//得到地址栏中的id let id = new URLSearchParams(location.search).get("id"); //发请求获取Id对应的微博信息 this.axios.get("http://localhost:8080/v1/weibos/"+id) .then((response)=>{ if(response.data.code==1){ this.weibo = response.data.data;//得到服务器响应的微博对象 } })
10-06
2058
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-13
3474
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)