//得到地址栏中的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;//得到服务器响应的微博对象 } })
12-13
3454
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-06
2022
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交