this.axios({
url:`/score-declare/detail?id=${params.id}`,
method:'get'
}).then((res)=>{
if(res.data.data){
this.dataList=res.data.data
}
})
// 之前是直接在地址后面拼接的id,但是没有生效。改成使用字符串模版后就行了
前端发送get请求
最新推荐文章于 2024-06-07 15:27:14 发布