提交 909ca11e authored 作者: matian's avatar matian

接口修改

上级 9fab0aa7
......@@ -42,5 +42,5 @@ export function exportClass(params) {
* 获取学员详情
*/
export function getStudentDetail(params) {
return httpRequest.get('/api/zy/v3-school/student/view', { params })
return httpRequest.get(`/api/zy/v3-teacher/course/student/${params.id}`, { params })
}
......@@ -49,7 +49,8 @@ export default {
},
methods: {
getDetail() {
getStudentDetail({ id: this.id }).then(res => {
const params = { id: this.id }
getStudentDetail(params).then(res => {
this.list = res.data.courses
})
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论